webext-schema
Advanced tools
Comparing version 5.0.3 to 5.0.4
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3463792
97567