Apply formatting

This commit is contained in:
Alexander Borsuk 2022-11-21 21:50:54 +01:00
parent 3389ee4de5
commit 6b347052a4
2 changed files with 73 additions and 4 deletions

View file

@ -4,15 +4,84 @@
"details": [
{
"appID": "9Z6432XD7L.app.organicmaps",
"paths": ["NOT /", "NOT /app", "NOT /get", "NOT /im_get", "NOT /install", "NOT /test*", "NOT /f", "NOT /fd", "NOT /fdroid", "NOT /g", "NOT /gp", "NOT /google", "NOT /googleplay", "NOT /h", "NOT /hw", "NOT /huawei", "NOT /i", "NOT /ios", "NOT /iphone", "NOT /ipad", "NOT /ipod", "*"]
"paths": [
"NOT /",
"NOT /app",
"NOT /get",
"NOT /im_get",
"NOT /install",
"NOT /test*",
"NOT /f",
"NOT /fd",
"NOT /fdroid",
"NOT /g",
"NOT /gp",
"NOT /google",
"NOT /googleplay",
"NOT /h",
"NOT /hw",
"NOT /huawei",
"NOT /i",
"NOT /ios",
"NOT /iphone",
"NOT /ipad",
"NOT /ipod",
"*"
]
},
{
"appID": "9Z6432XD7L.app.organicmaps.debug",
"paths": ["NOT /", "NOT /app", "NOT /get", "NOT /im_get", "NOT /install", "NOT /test*", "NOT /f", "NOT /fd", "NOT /fdroid", "NOT /g", "NOT /gp", "NOT /google", "NOT /googleplay", "NOT /h", "NOT /hw", "NOT /huawei", "NOT /i", "NOT /ios", "NOT /iphone", "NOT /ipad", "NOT /ipod", "*"]
"paths": [
"NOT /",
"NOT /app",
"NOT /get",
"NOT /im_get",
"NOT /install",
"NOT /test*",
"NOT /f",
"NOT /fd",
"NOT /fdroid",
"NOT /g",
"NOT /gp",
"NOT /google",
"NOT /googleplay",
"NOT /h",
"NOT /hw",
"NOT /huawei",
"NOT /i",
"NOT /ios",
"NOT /iphone",
"NOT /ipad",
"NOT /ipod",
"*"
]
},
{
"appID": "9Z6432XD7L.app.organicmaps.beta",
"paths": ["NOT /", "NOT /app", "NOT /get", "NOT /im_get", "NOT /install", "NOT /test*", "NOT /f", "NOT /fd", "NOT /fdroid", "NOT /g", "NOT /gp", "NOT /google", "NOT /googleplay", "NOT /h", "NOT /hw", "NOT /huawei", "NOT /i", "NOT /ios", "NOT /iphone", "NOT /ipad", "NOT /ipod", "*"]
"paths": [
"NOT /",
"NOT /app",
"NOT /get",
"NOT /im_get",
"NOT /install",
"NOT /test*",
"NOT /f",
"NOT /fd",
"NOT /fdroid",
"NOT /g",
"NOT /gp",
"NOT /google",
"NOT /googleplay",
"NOT /h",
"NOT /hw",
"NOT /huawei",
"NOT /i",
"NOT /ios",
"NOT /iphone",
"NOT /ipad",
"NOT /ipod",
"*"
]
}
]
}

View file

@ -78,7 +78,7 @@ async function handleFetchEvent(event: FetchEvent) {
// Try to return a static resource first.
try {
return await getAssetFromKV(event, getAssetOptions);
} catch (_) { }
} catch (_) {}
// No static resource were found, try to handle a specific dynamic request.
getAssetOptions.mapRequestToAsset = (request: Request) => {
const url = new URL(request.url);