[chrome-gnome-shell/feature/opera] opera: use html background page instead if scripts array.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell/feature/opera] opera: use html background page instead if scripts array.
- Date: Sat, 27 Aug 2016 08:37:37 +0000 (UTC)
commit a61bf600f90abd4b8872aa57753ee21f00a31e13
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Sat Aug 27 11:18:48 2016 +0300
opera: use html background page instead if scripts array.
There is a bug in Opera addons site that breaks order of
"background.scripts" array values in manifest.json. Thus we use html page
to force order of scripts until this will be fixed.
http://forums.opera.com/discussion/1874611/bugpublication-extension-manifest-broken-after-extension-publicated
extension/extension.html | 18 ++++++++++++++++++
extension/manifest.json | 10 +---------
2 files changed, 19 insertions(+), 9 deletions(-)
---
diff --git a/extension/extension.html b/extension/extension.html
new file mode 100644
index 0000000..5898964
--- /dev/null
+++ b/extension/extension.html
@@ -0,0 +1,18 @@
+<!DOCTYPE html>
+<!--
+ There is a bug in Opera addons site that breaks order of "background.scripts" array values
+ in manifest.json. Thus we use this page to force order of scripts until this will be fixed.
+
http://forums.opera.com/discussion/1874611/bugpublication-extension-manifest-broken-after-extension-publicated
+-->
+<html>
+ <head><title>.</title></head>
+ <body>
+ <script src="include/jquery-2.1.4.min.js"></script>
+ <script src="include/i18n.js"></script>
+ <script src="include/constants.js"></script>
+ <script src="include/gsc.js"></script>
+ <script src="include/notifications.js"></script>
+ <script src="include/update.js"></script>
+ <script src="extension.js"></script>
+ </body>
+</html>
diff --git a/extension/manifest.json b/extension/manifest.json
index d9ea584..f8a88bd 100644
--- a/extension/manifest.json
+++ b/extension/manifest.json
@@ -18,15 +18,7 @@
},
"background": {
- "scripts": [
- "include/jquery-2.1.4.min.js",
- "include/i18n.js",
- "include/constants.js",
- "include/gsc.js",
- "include/notifications.js",
- "include/update.js",
- "extension.js"
- ],
+ "page": "extension.html",
"persistent": false
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]