[extensions-web/wip/ne0sight] browser-extension: restore Google Chrome installation link
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/wip/ne0sight] browser-extension: restore Google Chrome installation link
- Date: Sun, 24 Nov 2019 18:34:14 +0000 (UTC)
commit 4f6d7d85feb6e73953492b54dfe478ed5db9711e
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Nov 24 22:34:10 2019 +0400
browser-extension: restore Google Chrome installation link
Closes: https://gitlab.gnome.org/Infrastructure/extensions-web/issues/88
sweettooth/static/js/browser_extension.js | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/sweettooth/static/js/browser_extension.js b/sweettooth/static/js/browser_extension.js
index 5409fb7..a7e5265 100644
--- a/sweettooth/static/js/browser_extension.js
+++ b/sweettooth/static/js/browser_extension.js
@@ -8,7 +8,11 @@
(at your option) any later version.
*/
-IS_CHROME = (typeof(chrome) !== 'undefined' && typeof(chrome.webstore) !== 'undefined');
+IS_CHROME = (typeof(chrome) !== 'undefined' && (
+ typeof(chrome.webstore) !== 'undefined' ||
+ typeof(chrome.runtime) !== 'undefined' ||
+ typeof(chrome.csi) !== 'undefined'
+));
IS_FIREFOX = (typeof(InstallTrigger) !== 'undefined');
IS_OPERA = (typeof(opr) !== 'undefined');
@@ -39,10 +43,7 @@ function browser_extension_install() {
}
else if (IS_CHROME)
{
- chrome.webstore.install(
- undefined,
- reload_page
- );
+ window.open('https://chrome.google.com/webstore/detail/gphhapmejobijbbhgpjhcjognlahblep');
}
return false;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]