summaryrefslogtreecommitdiff
path: root/ext/sw.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-12-18 15:54:05 -0500
committerGitHub <noreply@github.com>2020-12-18 15:54:05 -0500
commit51223abfa696c5917828fdb5a6d7b1816d76c5c6 (patch)
tree1c64ad6b15b0773908669cdce14e6d1f319e428e /ext/sw.js
parentfd91a5b383addb1b420fba0450a89ceb50cdd3e8 (diff)
Set up initial manifest v3 support (#605)
Diffstat (limited to 'ext/sw.js')
-rw-r--r--ext/sw.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/ext/sw.js b/ext/sw.js
new file mode 100644
index 00000000..1b377ae0
--- /dev/null
+++ b/ext/sw.js
@@ -0,0 +1,45 @@
+/*
+ * Copyright (C) 2020 Yomichan Authors
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+self.importScripts(
+ '/mixed/lib/wanakana.min.js',
+ '/mixed/js/core.js',
+ '/mixed/js/yomichan.js',
+ '/mixed/js/environment.js',
+ '/mixed/js/japanese.js',
+ '/mixed/js/cache-map.js',
+ '/mixed/js/dictionary-data-util.js',
+ '/mixed/js/object-property-accessor.js',
+ '/bg/js/anki.js',
+ '/bg/js/audio-downloader.js',
+ '/bg/js/clipboard-monitor.js',
+ '/bg/js/clipboard-reader.js',
+ '/bg/js/database.js',
+ '/bg/js/deinflector.js',
+ '/bg/js/dictionary-database.js',
+ '/bg/js/json-schema.js',
+ '/bg/js/mecab.js',
+ '/bg/js/media-utility.js',
+ '/bg/js/options.js',
+ '/bg/js/profile-conditions.js',
+ '/bg/js/request-builder.js',
+ '/bg/js/native-simple-dom-parser.js',
+ '/bg/js/text-source-map.js',
+ '/bg/js/translator.js',
+ '/bg/js/backend.js',
+ '/bg/js/background-main.js'
+);