[chrome-gnome-shell/release/v8.2.1: 2/4] 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/release/v8.2.1: 2/4] firefox: show usefull error message in case native connector not installed.
- Date: Fri, 24 Mar 2017 15:40:53 +0000 (UTC)
commit 020317c2ce62250d5a2911ecc4bd3efc28b11f6b
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]