[chrome-gnome-shell] 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] opera: use html background page instead if scripts array.
- Date: Sat, 27 Aug 2016 08:19:47 +0000 (UTC)
commit 221847f800e9fd53082beb866859eff39e825f12
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 | 19 +++++++++++++++++++
extension/manifest.json | 11 +----------
2 files changed, 20 insertions(+), 10 deletions(-)
---
diff --git a/extension/extension.html b/extension/extension.html
new file mode 100644
index 0000000..c1a2a22
--- /dev/null
+++ b/extension/extension.html
@@ -0,0 +1,19 @@
+<!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/external/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="include/sync.js"></script>
+ <script src="extension.js"></script>
+ </body>
+</html>
diff --git a/extension/manifest.json b/extension/manifest.json
index 50eb4d1..df31ee8 100644
--- a/extension/manifest.json
+++ b/extension/manifest.json
@@ -18,16 +18,7 @@
},
"background": {
- "scripts": [
- "include/external/jquery-2.1.4.min.js",
- "include/i18n.js",
- "include/constants.js",
- "include/gsc.js",
- "include/notifications.js",
- "include/update.js",
- "include/sync.js",
- "extension.js"
- ],
+ "page": "extension.html",
"persistent": false
},
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]