[chrome-gnome-shell] Fixed APIs check
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] Fixed APIs check
- Date: Sun, 25 Dec 2016 08:48:27 +0000 (UTC)
commit 12983c7c360ac9fb0492b86bd94cbd4b832bbd4e
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Dec 25 12:30:48 2016 +0400
Fixed APIs check
connector/chrome-gnome-shell.py | 12 ++++++------
extension/include/sweettooth-api.js | 4 ++--
2 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/connector/chrome-gnome-shell.py b/connector/chrome-gnome-shell.py
index 47c221d..53b3890 100755
--- a/connector/chrome-gnome-shell.py
+++ b/connector/chrome-gnome-shell.py
@@ -368,12 +368,12 @@ class ChromeGNOMEShell(Gio.Application):
'properties': {
'connectorVersion': CONNECTOR_VERSION,
'shellVersion': shell_version.unpack(),
- 'versionValidationEnabled': not disable_version_check
- },
- 'supports': [
- 'notifications',
- 'update-check'
- ]
+ 'versionValidationEnabled': not disable_version_check,
+ 'supports': [
+ 'notifications',
+ 'update-check'
+ ]
+ }
}
)
diff --git a/extension/include/sweettooth-api.js b/extension/include/sweettooth-api.js
index 0605dda..627e7be 100644
--- a/extension/include/sweettooth-api.js
+++ b/extension/include/sweettooth-api.js
@@ -83,10 +83,10 @@ window.SweetTooth = function () {
if(response.supports)
{
- for(let api in response.supports)
+ for(let api of response.supports)
{
let api_index;
- if((api_index = REQUIRED_APIS.index(api)) != -1)
+ if((api_index = REQUIRED_APIS.indexOf(api)) != -1)
{
REQUIRED_APIS.splice(api_index, 1);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]