[extensions-web/feature/reveal-v6: 1/2] Fixed detection of v6 features availability
- From: Yuri Konotopov <ykonotopov src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [extensions-web/feature/reveal-v6: 1/2] Fixed detection of v6 features availability
- Date: Sat, 23 Jul 2022 13:36:18 +0000 (UTC)
commit 794632664fbe0fc9a36de731378c2f07c731548c
Author: Yuri Konotopov <ykonotopov gnome org>
Date: Sat Jul 23 17:34:35 2022 +0400
Fixed detection of v6 features availability
sweettooth/static/js/settings.js | 2 +-
sweettooth/static/js/versions/5/main.js | 2 ++
sweettooth/static/js/versions/6/main.js | 2 ++
3 files changed, 5 insertions(+), 1 deletion(-)
---
diff --git a/sweettooth/static/js/settings.js b/sweettooth/static/js/settings.js
index 9e244e3..8296832 100644
--- a/sweettooth/static/js/settings.js
+++ b/sweettooth/static/js/settings.js
@@ -35,7 +35,7 @@ define(['jquery', 'dbus!_', 'template!extensions/settings'], function ($, dbusPr
name: 'Disable version validation',
description: 'Allow to load extensions that do not claims to support running
Shell version. Default to enabled for recent Shell versions.',
enabled: () => {
- return typeof(dbusProxy.VersionValidationEnabled) !== 'undefined';
+ return dbusProxy.CanSetVersionValidationDisabled;
},
get: () => {
if(dbusProxy.IsDummy)
diff --git a/sweettooth/static/js/versions/5/main.js b/sweettooth/static/js/versions/5/main.js
index 148a053..88dabcd 100644
--- a/sweettooth/static/js/versions/5/main.js
+++ b/sweettooth/static/js/versions/5/main.js
@@ -29,6 +29,8 @@ define(['jquery', 'dbus!API', 'versions/common/common'], function($, API, common
SetUserExtensionsDisabled: common.Reject,
SetVersionValidationDisabled: common.Reject,
+ CanSetVersionValidationDisabled: false,
+
ShellVersion: API.shellVersion,
VersionValidationEnabled: typeof(API.versionValidationEnabled) == 'undefined' ||
API.versionValidationEnabled,
diff --git a/sweettooth/static/js/versions/6/main.js b/sweettooth/static/js/versions/6/main.js
index 571e9ad..c346bdc 100644
--- a/sweettooth/static/js/versions/6/main.js
+++ b/sweettooth/static/js/versions/6/main.js
@@ -28,6 +28,8 @@ define(['jquery', 'dbus!API', 'versions/common/common'], function($, API, common
SetUserExtensionsDisabled: common.SetUserExtensionsDisabled,
SetVersionValidationDisabled: common.SetVersionValidationDisabled,
+ CanSetVersionValidationDisabled: true,
+
ShellVersion: API.shellVersion,
VersionValidationEnabled: typeof(API.versionValidationEnabled) == 'undefined' ||
API.versionValidationEnabled,
UserExtensionsDisabled: API.userExtensionsDisabled,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]