[chrome-gnome-shell] Added proper check for extension uuid and version before sending to server.
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [chrome-gnome-shell] Added proper check for extension uuid and version before sending to server.
- Date: Mon, 12 Sep 2016 05:13:02 +0000 (UTC)
commit e566d4e39ad04b100fd42940f48ebf0dbe16c6de
Author: Yuri Konotopov <ykonotopov gmail com>
Date: Mon Sep 12 08:12:47 2016 +0300
Added proper check for extension uuid and version before sending to server.
For some reason wrong version number is returned for some extensions
and it is breaking sweettooth server.
Thanks to yut23 from Github for finding this.
https://github.com/nE0sIghT/chrome-gnome-shell-mirror/issues/8
extension/include/update.js | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
---
diff --git a/extension/include/update.js b/extension/include/update.js
index b0473c0..20bdcd8 100644
--- a/extension/include/update.js
+++ b/extension/include/update.js
@@ -45,7 +45,10 @@ GSC.update = (function($) {
for (uuid in extensionsResponse.extensions)
{
- request.installed[uuid] = {version:
extensionsResponse.extensions[uuid].version};
+ if (GSC.isUUID(uuid))
+ {
+ request.installed[uuid] = {version:
parseInt(extensionsResponse.extensions[uuid].version) || 0};
+ }
}
request.installed = JSON.stringify(request.installed);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]