[chrome-gnome-shell] firefox: show usefull error message in case native connector not installed.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] firefox: show usefull error message in case native connector not installed.
- Date: Mon, 20 Mar 2017 20:08:56 +0000 (UTC)
commit dd9c87a3ddab1e9eba362978a924c97c039385c5
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Tue Mar 21 00:08:31 2017 +0400
firefox: show usefull error message in case native connector not installed.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=780282
extension/include/gsc.js | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/extension/include/gsc.js b/extension/include/gsc.js
index fc3945e..be80d14 100644
--- a/extension/include/gsc.js
+++ b/extension/include/gsc.js
@@ -54,7 +54,8 @@ GSC = (function() {
if (
chrome.runtime.lastError &&
chrome.runtime.lastError.message &&
-
chrome.runtime.lastError.message.indexOf("host not found") === -1
+
chrome.runtime.lastError.message.indexOf("host not found") === -1 && // Chrome
+
chrome.runtime.lastError.message.indexOf("disconnected port") === -1 // Firefox
)
{
// Some error occured. Show to user
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]