We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0a0a3cd + 49268a8 commit e15b71eCopy full SHA for e15b71e
src/devtools/devtools.js
@@ -1,6 +1,14 @@
1
-chrome.devtools.panels.create(
2
- "HackTools", // title for the panel tab
3
- null, // you can specify here path to an icon
4
- "index.html", // html page which is gonna be injecting into the tab's content
5
- null // you can pass here a callback function
6
-);
+navigator.userAgent.indexOf("Firefox") != -1 &&
+ browser.devtools.panels.create(
+ "HackTools",
+ "get_started16.png",
+ "index.html"
+ );
7
+
8
+navigator.userAgent.indexOf("Chrome") != -1 &&
9
+ chrome.devtools.panels.create(
10
+ "HackTools", // title for the panel tab
11
+ null, // path to an icon
12
+ "index.html", // html page which is gonna be injecting into the tab's content
13
+ null // callback function here
14
0 commit comments