reorder the button display order

This commit is contained in:
MaysWind
2026-03-11 01:08:11 +08:00
parent 13488efdaf
commit dd63500202
4 changed files with 38 additions and 38 deletions
+17 -17
View File
@@ -212,23 +212,6 @@ export function updateMapCacheExpiration(expireSeconds: number): void {
}
}
export function clearMapDataCache(): Promise<void> {
if (!window.caches) {
logger.error('caches API is not supported in this browser');
return Promise.reject();
}
return window.caches.delete(SW_MAP_CACHE_NAME).then(success => {
if (success) {
logger.info(`cache "${SW_MAP_CACHE_NAME}" cleared successfully`);
} else {
logger.warn(`failed to clear cache "${SW_MAP_CACHE_NAME}"`);
}
}).catch(error => {
logger.error(`failed to clear cache "${SW_MAP_CACHE_NAME}"`, error);
});
}
export function clearApplicationCodeCache(): Promise<void> {
if (!window.caches) {
logger.error('caches API is not supported in this browser');
@@ -246,6 +229,23 @@ export function clearApplicationCodeCache(): Promise<void> {
});
}
export function clearMapDataCache(): Promise<void> {
if (!window.caches) {
logger.error('caches API is not supported in this browser');
return Promise.reject();
}
return window.caches.delete(SW_MAP_CACHE_NAME).then(success => {
if (success) {
logger.info(`cache "${SW_MAP_CACHE_NAME}" cleared successfully`);
} else {
logger.warn(`failed to clear cache "${SW_MAP_CACHE_NAME}"`);
}
}).catch(error => {
logger.error(`failed to clear cache "${SW_MAP_CACHE_NAME}"`, error);
});
}
export function clearAllBrowserCaches(): Promise<void> {
if (!window.caches) {
logger.error('caches API is not supported in this browser');