mirror of
https://github.com/zen-browser/desktop.git
synced 2026-02-09 21:38:42 +00:00
feat: add zen identification to extension runtime for zen-specific features
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
diff --git a/toolkit/components/extensions/parent/ext-runtime.js b/toolkit/components/extensions/parent/ext-runtime.js
|
||||
index 0d7a3e505b6bd30548c6dda1504dd343a517b083..54400def5e02e886765fab68c3854a6b3c24ef2b 100644
|
||||
index 0d7a3e505b6bd30548c6dda1504dd343a517b083..bf16027dba3022a9bf53935fb27377e3295e2ce1 100644
|
||||
--- a/toolkit/components/extensions/parent/ext-runtime.js
|
||||
+++ b/toolkit/components/extensions/parent/ext-runtime.js
|
||||
@@ -333,7 +333,7 @@ this.runtime = class extends ExtensionAPIPersistent {
|
||||
@@ -7,7 +7,7 @@ index 0d7a3e505b6bd30548c6dda1504dd343a517b083..54400def5e02e886765fab68c3854a6b
|
||||
getBrowserInfo: function () {
|
||||
const { name, vendor, version, appBuildID } = Services.appinfo;
|
||||
- const info = { name, vendor, version, buildID: appBuildID };
|
||||
+ const info = { name: 'Firefox', vendor, version: AppConstants.ZEN_FIREFOX_VERSION, buildID: appBuildID };
|
||||
+ const info = { name: 'Firefox', vendor, version: AppConstants.ZEN_FIREFOX_VERSION, buildID: appBuildID, zen: {version: AppConstants.MOZ_APP_VERSION_DISPLAY, platform: AppConstants.platform} };
|
||||
return Promise.resolve(info);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user