Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

webext-schema

Package Overview
Dependencies
Maintainers
1
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webext-schema - npm Package Compare versions

Comparing version 5.0.3 to 5.0.4

6

modules/browser.js

@@ -1069,5 +1069,6 @@ /**

*
* @param {number} windowId - window ID
* @returns {object} - theme.Theme
*/
export const getCurrentTheme = async () => {
export const getCurrentTheme = async windowId => {
const isGranted = await isPermissionGranted({

@@ -1079,3 +1080,4 @@ permissions: ['theme']

const { theme } = browser;
currentTheme = await theme.getCurrent();
currentTheme =
await theme.getCurrent(Number.isInteger(windowId) ? windowId : null);
}

@@ -1082,0 +1084,0 @@ return currentTheme ?? null;

@@ -41,3 +41,3 @@ {

"chai": "^4.3.6",
"eslint": "^8.23.1",
"eslint": "^8.24.0",
"eslint-config-standard": "^17.0.0",

@@ -52,3 +52,3 @@ "eslint-plugin-import": "^2.26.0",

},
"version": "5.0.3"
"version": "5.0.4"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc