devtools-contextmenu
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -5,7 +5,8 @@ /* This Source Code Form is subject to the terms of the Mozilla Public | ||
const { Menu, MenuItem } = require("devtools-modules"); | ||
const Menu = require("devtools-modules/src/menu"); | ||
const MenuItem = require("devtools-modules/src/menu-item"); | ||
function inToolbox() { | ||
try { | ||
return window.parent.document.documentURI == "about:devtools-toolbox"; | ||
return window.parent.document.documentURI.startsWith("about:devtools-toolbox"); | ||
} catch (e) { | ||
@@ -12,0 +13,0 @@ // If `window` is not available, it's very likely that we are in the toolbox. |
{ | ||
"name": "devtools-contextmenu", | ||
"version": "1.0.5", | ||
"version": "1.0.6", | ||
"description": "DevTools Contextmenu", | ||
@@ -12,4 +12,4 @@ "main": "menu.js", | ||
"dependencies": { | ||
"devtools-modules": "~1.1.2" | ||
"devtools-modules": "~1.1.3" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
6518
202
Updateddevtools-modules@~1.1.3