UNPKG

@gdquest/gd-exercise-react

Version:

React project for GDExercise.

186 lines (176 loc) 5.63 kB
/** * Copyright 2018 Google Inc. All Rights Reserved. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * http://www.apache.org/licenses/LICENSE-2.0 * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ // If the loader is already loaded, just stop. if (!self.define) { let registry = {}; // Used for `eval` and `importScripts` where we can't get script URL by other means. // In both cases, it's safe to use a global var because those functions are synchronous. let nextDefineUri; const singleRequire = (uri, parentUri) => { uri = new URL(uri + ".js", parentUri).href; return registry[uri] || ( new Promise(resolve => { if ("document" in self) { const script = document.createElement("script"); script.src = uri; script.onload = resolve; document.head.appendChild(script); } else { nextDefineUri = uri; importScripts(uri); resolve(); } }) .then(() => { let promise = registry[uri]; if (!promise) { throw new Error(`Module ${uri} didn’t register its module`); } return promise; }) ); }; self.define = (depsNames, factory) => { const uri = nextDefineUri || ("document" in self ? document.currentScript.src : "") || location.href; if (registry[uri]) { // Module is already loading or loaded. return; } let exports = {}; const require = depUri => singleRequire(depUri, uri); const specialDeps = { module: { uri }, exports, require }; registry[uri] = Promise.all(depsNames.map( depName => specialDeps[depName] || require(depName) )).then(deps => { factory(...deps); return exports; }); }; } define(['./workbox-a629afbf'], (function (workbox) { 'use strict'; self.skipWaiting(); workbox.clientsClaim(); /** * The precacheAndRoute() method efficiently caches and responds to * requests for URLs in the manifest. * See https://goo.gl/S9QRab */ workbox.precacheAndRoute([{ "url": "assets/client-c781d100.js", "revision": null }, { "url": "assets/demo-9f3f6fe1.css", "revision": null }, { "url": "assets/demo-f7ac4503.js", "revision": null }, { "url": "assets/dist-JOLMFQSE-78eed63f.js", "revision": null }, { "url": "assets/dist-LKHVF5W7-95d4e1f1.js", "revision": null }, { "url": "assets/dist-SFRFRGE3-2bd06938.js", "revision": null }, { "url": "assets/GdExercise-6ef49038.css", "revision": null }, { "url": "assets/GdExercise-be6e505c.js", "revision": null }, { "url": "assets/gdquest-logo-dark-d5790a4a.svg", "revision": null }, { "url": "assets/gdquest-logo-light-71d329d3.svg", "revision": null }, { "url": "assets/loader-40814945.css", "revision": null }, { "url": "assets/loader-9a6dfd57.js", "revision": null }, { "url": "assets/size-95169cc0.js", "revision": null }, { "url": "demo.html", "revision": "9f2c7617383f56edc863da2dd1f20783" }, { "url": "exercises/godot-practice-framework.zip", "revision": "0c5786efc06cddf1a88d03a6ad22e25e" }, { "url": "favicon.png", "revision": "535cb68d085e558ee8baeab53fc4b197" }, { "url": "godot.editor.audio.worklet.js", "revision": "0f147ff6c4b7d53f0d66d591aeada8b6" }, { "url": "godot.editor.html", "revision": "62910be9664a0365598e442e78c6f1dc" }, { "url": "godot.editor.js", "revision": "ac6547989fffcf0bfb2a2373eb5c5765" }, { "url": "godot.editor.wasm", "revision": "62aa99c3cfc651d8c9c50d1a0481791e" }, { "url": "godot.editor.worker.js", "revision": "9465017f99d00531e2a5a3dad30598ba" }, { "url": "loader.html", "revision": "2266a9449b29fca7b7df1a56c5b10d20" }, { "url": "logo.svg", "revision": "00f8e06a4025502a3d5c5acb4c648bd6" }, { "url": "offline.html", "revision": "e76efda1fe9995bcf9028d0e21deb3ce" }, { "url": "projects/2d-character-completed.zip", "revision": "b2f5b38924dfa022a6c47820ec073a9c" }, { "url": "projects/2d-project-completed.zip", "revision": "86cda7620109939b15ded468eae33198" }, { "url": "projects/3d-project-completed.zip", "revision": "28f1ae04c614cc78df57322065440017" }, { "url": "projects/blank.zip", "revision": "dcb537d5b7ab2f89c71a4459500b1643" }, { "url": "projects/getting-started-with-godot-4.zip", "revision": "8e3449cbb485d7b99c7f441dbe4e9802" }, { "url": "projects/snippet.zip", "revision": "60ef8be8e5748fba3856d5539f69ee3f" }, { "url": "registerSW.js", "revision": "402b66900e731ca748771b6fc5e7a068" }, { "url": "service.worker.js", "revision": "5534880e7711653acabe0a27de301250" }, { "url": "manifest.webmanifest", "revision": "27e3f25b4afe9e8d2b0467ed55d91269" }], {}); workbox.cleanupOutdatedCaches(); workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"))); workbox.registerRoute(/godot\.editor\.(?:js|wasm|(?:(?:audio\.worklet|worker)\.js))/, new workbox.StaleWhileRevalidate(), 'GET'); })); //# sourceMappingURL=sw.js.map