Remove excess superdough filtering for now
This commit is contained in:
@ -36,22 +36,6 @@ if (!self.define) {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
.then(() => {
|
|
||||||
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(() => {
|
.then(() => {
|
||||||
let promise = registry[uri];
|
let promise = registry[uri];
|
||||||
if (!promise) {
|
if (!promise) {
|
||||||
@ -70,15 +54,11 @@ if (!self.define) {
|
|||||||
}
|
}
|
||||||
let exports = {};
|
let exports = {};
|
||||||
const require = depUri => singleRequire(depUri, uri);
|
const require = depUri => singleRequire(depUri, uri);
|
||||||
const require = depUri => singleRequire(depUri, uri);
|
|
||||||
const specialDeps = {
|
const specialDeps = {
|
||||||
module: { uri },
|
module: { uri },
|
||||||
exports,
|
exports,
|
||||||
require
|
require
|
||||||
};
|
};
|
||||||
registry[uri] = Promise.all(depsNames.map(
|
|
||||||
depName => specialDeps[depName] || require(depName)
|
|
||||||
)).then(deps => {
|
|
||||||
registry[uri] = Promise.all(depsNames.map(
|
registry[uri] = Promise.all(depsNames.map(
|
||||||
depName => specialDeps[depName] || require(depName)
|
depName => specialDeps[depName] || require(depName)
|
||||||
)).then(deps => {
|
)).then(deps => {
|
||||||
@ -87,7 +67,6 @@ if (!self.define) {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
define(['./workbox-b7fccfec'], (function (workbox) { 'use strict';
|
|
||||||
define(['./workbox-b7fccfec'], (function (workbox) { 'use strict';
|
define(['./workbox-b7fccfec'], (function (workbox) { 'use strict';
|
||||||
|
|
||||||
self.skipWaiting();
|
self.skipWaiting();
|
||||||
@ -103,7 +82,7 @@ define(['./workbox-b7fccfec'], (function (workbox) { 'use strict';
|
|||||||
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
"revision": "3ca0b8505b4bec776b69afdba2768812"
|
||||||
}, {
|
}, {
|
||||||
"url": "index.html",
|
"url": "index.html",
|
||||||
"revision": "0.fcmga3d8u2"
|
"revision": "0.dmelkdejat"
|
||||||
}], {});
|
}], {});
|
||||||
workbox.cleanupOutdatedCaches();
|
workbox.cleanupOutdatedCaches();
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
||||||
@ -121,21 +100,5 @@ define(['./workbox-b7fccfec'], (function (workbox) { 'use strict';
|
|||||||
})]
|
})]
|
||||||
}), 'GET');
|
}), 'GET');
|
||||||
|
|
||||||
}));
|
|
||||||
workbox.registerRoute(new workbox.NavigationRoute(workbox.createHandlerBoundToURL("index.html"), {
|
|
||||||
allowlist: [/^\/$/]
|
|
||||||
}));
|
|
||||||
workbox.registerRoute(({
|
|
||||||
url
|
|
||||||
}) => [/^https:\/\/raw\.githubusercontent\.com\/.*/i, /^https:\/\/shabda\.ndre\.gr\/.*/i].some(regex => regex.test(url)), new workbox.CacheFirst({
|
|
||||||
"cacheName": "external-samples",
|
|
||||||
plugins: [new workbox.ExpirationPlugin({
|
|
||||||
maxEntries: 5000,
|
|
||||||
maxAgeSeconds: 2592000
|
|
||||||
}), new workbox.CacheableResponsePlugin({
|
|
||||||
statuses: [0, 200]
|
|
||||||
})]
|
|
||||||
}), 'GET');
|
|
||||||
|
|
||||||
}));
|
}));
|
||||||
//# sourceMappingURL=sw.js.map
|
//# sourceMappingURL=sw.js.map
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -438,7 +438,9 @@ export class SoundEvent extends AudibleEvent {
|
|||||||
|
|
||||||
for (const event of events) {
|
for (const event of events) {
|
||||||
// Filter non superdough parameters
|
// Filter non superdough parameters
|
||||||
const filteredEvent = filterObject(event, ["analyze","note","dur","freq","s"]);
|
// TODO: Should filter relevant fields for superdough
|
||||||
|
// const filteredEvent = filterObject(event, ["analyze","note","dur","freq","s"]);
|
||||||
|
const filteredEvent = event;
|
||||||
// No need for note if there is freq
|
// No need for note if there is freq
|
||||||
if(filteredEvent.freq) { delete filteredEvent.note; }
|
if(filteredEvent.freq) { delete filteredEvent.note; }
|
||||||
superdough(filteredEvent, this.nudge - this.app.clock.deviation, filteredEvent.dur);
|
superdough(filteredEvent, this.nudge - this.app.clock.deviation, filteredEvent.dur);
|
||||||
|
|||||||
Reference in New Issue
Block a user