reorder the button display order
This commit is contained in:
+17
-17
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user