[chrome-gnome-shell/feature/extensions_sync] Rename constant
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell/feature/extensions_sync] Rename constant
- Date: Thu, 11 Aug 2016 10:09:17 +0000 (UTC)
commit 30337af25b17a797866d437f949cb373701e3191
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Thu Aug 11 11:24:23 2016 +0300
Rename constant
extension/extension.js | 2 +-
extension/include/constants.js | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/extension/extension.js b/extension/extension.js
index 8865dec..a37b2e7 100644
--- a/extension/extension.js
+++ b/extension/extension.js
@@ -70,7 +70,7 @@ chrome.runtime.onMessageExternal.addListener(function (request, sender, sendResp
var lastPortMessage = {message: null, date: 0};
var port = chrome.runtime.connectNative(NATIVE_HOST);
port.onMessage.addListener(function (message) {
- if (message && message.signal && [SIGNAL_EXTENSIONS_CHANGED,
SIGNAL_SHELL_APPEARED].indexOf(message.signal) !== -1)
+ if (message && message.signal && [SIGNAL_EXTENSION_CHANGED,
SIGNAL_SHELL_APPEARED].indexOf(message.signal) !== -1)
{
if((new Date().getTime()) - lastPortMessage.date < 500 && GSC.isSignalsEqual(message,
lastPortMessage.message))
{
diff --git a/extension/include/constants.js b/extension/include/constants.js
index acce37d..d909a1b 100644
--- a/extension/include/constants.js
+++ b/extension/include/constants.js
@@ -19,7 +19,7 @@ ALARM_UPDATE_CHECK = 'gs-chrome-update-check';
MESSAGE_NEXT_UPDATE_CHANGED = 'gs-next-update-changed';
-SIGNAL_EXTENSIONS_CHANGED = 'ExtensionStatusChanged';
+SIGNAL_EXTENSION_CHANGED = 'ExtensionStatusChanged';
SIGNAL_SHELL_APPEARED = 'org.gnome.Shell';
NATIVE_HOST = 'io.github.ne0sight.gs_chrome_connector';
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]