Patching omt for the service worker

This commit is contained in:
Jake Archibald
2020-11-12 14:00:10 +00:00
parent d1ee92e884
commit 1b80dd23ee

View File

@@ -15,7 +15,10 @@
if (!self.<%- amdFunctionName %>) {
const singleRequire = async name => {
if (name === 'require') return require;
const url = '/c/' + name.slice(2) + '.js';
let url = name.slice(1) + '.js';
if (!url.startsWith('/c/')) {
url = '/c' + url;
}
name = './static' + url;
if (registry[name]) return registry[name];