[extensions-web] extensionUtils: added ExtensionType constants
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web] extensionUtils: added ExtensionType constants
- Date: Sun, 12 Feb 2017 07:39:26 +0000 (UTC)
commit b199d9490b25f7d8bdf1133e9cb5d8e303b67a55
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sun Feb 12 10:29:17 2017 +0400
extensionUtils: added ExtensionType constants
sweettooth/static/js/extensionUtils.js | 6 ++++++
sweettooth/static/js/extensions.js | 4 +---
2 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/sweettooth/static/js/extensionUtils.js b/sweettooth/static/js/extensionUtils.js
index 1d0469d..63a99da 100644
--- a/sweettooth/static/js/extensionUtils.js
+++ b/sweettooth/static/js/extensionUtils.js
@@ -31,6 +31,12 @@ define([], function () {
UNINSTALLED: 99
};
+ // https://git.gnome.org/browse/gnome-shell/tree/js/misc/extensionUtils.js
+ exports.ExtensionType = {
+ SYSTEM: 1,
+ PER_USER: 2
+ };
+
exports.grabProperExtensionVersion = function (map, current) {
if (!map)
{
diff --git a/sweettooth/static/js/extensions.js b/sweettooth/static/js/extensions.js
index 9b11da4..a75e00f 100644
--- a/sweettooth/static/js/extensions.js
+++ b/sweettooth/static/js/extensions.js
@@ -275,9 +275,7 @@ define(['jquery', 'messages', 'dbus!_', 'extensionUtils', 'templates', 'paginato
var $elem = $('<a>');
function renderExtension() {
- //
https://git.gnome.org/browse/gnome-shell/tree/js/misc/extensionUtils.js#n16
- // ExtensionType.SYSTEM = 1
- if (extension.type === 1)
+ if (extension.type ==
extensionUtils.ExtensionType.SYSTEM)
{
extension.system = true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]