Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions directoryimporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ import {
directoryOpen,
fileSave,
supported
} from 'https://unpkg.com/browser-fs-access';
} from 'https://unpkg.com/browser-fs-access?module';


(async () => {
if (supported) {
Expand Down Expand Up @@ -50,7 +50,7 @@ openDirectoryButton.addEventListener('click', async () => {
//const blobs2 = blobs[0]

//const url = URL.createObjectURL(blobs2);

//var audiothingy = document.getElementById("audio")
//audiothingy.src = url;
//console.log(url)
Expand Down Expand Up @@ -85,7 +85,7 @@ saveButton.addEventListener('click', async () => {
var arraylength = CueArray.length;

const now = new Date()

var jsonpasser = JSON.stringify(CueArray, null, ' ')

//console.log(jsonpasser)
Expand All @@ -97,7 +97,7 @@ saveButton.addEventListener('click', async () => {
extensions: ['.gocue'],
excludeAcceptAllOption: true,
});

} catch (err) {
if (err.name !== 'AbortError') {
return console.error(err);
Expand All @@ -106,4 +106,4 @@ saveButton.addEventListener('click', async () => {
}
});

})();
})();
8 changes: 4 additions & 4 deletions sw.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,15 +44,15 @@ self.addEventListener('install', function(e) {
'./WAIT_ICON.png',
'./js/FileSaver.js',
'./js/LICENSE.md',
'https://unpkg.com/browser-fs-access'
'https://unpkg.com/browser-fs-access?module'
]);
})
);
});

self.addEventListener('fetch', function(event) {
console.log(event.request.url);

event.respondWith(
caches.match(event.request).then(function(response) {
return response || fetch(event.request);
Expand All @@ -62,7 +62,7 @@ self.addEventListener('fetch', function(event) {

self.addEventListener('activate', (event) => {
var cacheKeeplist = ['GoCue_v1.01'];

event.waitUntil(
caches.keys().then((keyList) => {
return Promise.all(keyList.map((key) => {
Expand All @@ -72,4 +72,4 @@ self.addEventListener('activate', (event) => {
}));
})
);
});
});