Skip to content

Commit

Permalink
again worker
Browse files Browse the repository at this point in the history
  • Loading branch information
strukturart committed Aug 25, 2023
1 parent 944fc65 commit 26a20c6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -3630,7 +3630,7 @@ if ("b2g" in Navigator) {
}

if (window.Worker) {
/*

try {
const worker = new Worker(new URL("worker.js", import.meta.url));

Expand All @@ -3645,7 +3645,7 @@ if (window.Worker) {
} catch (e) {
alert(e);
}
*/

}

let add_alarm = function (date, message_text, id) {
Expand Down
6 changes: 6 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,12 @@
"bugs": {
"url": "https://github.com/strukturart/greg/issues"
},
"alias": {
"worker.js": "./worker.js"
},
"webworker": {
"worker-src": "worker.js"
},
"homepage": "https://github.com/strukturart/greg#readme",
"devDependencies": {
"@babel/cli": "^7.18.10",
Expand Down

0 comments on commit 26a20c6

Please sign in to comment.