forked from up209d/ResourcesSaverExt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
2.0.4 temporary default back to 0.1.8
- Loading branch information
Duc Duong
committed
Sep 29, 2022
1 parent
c113dba
commit a79d998
Showing
16 changed files
with
63 additions
and
3,683 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
//console.log('Hello from -> Devtool'); | ||
|
||
const init = () => { | ||
const version = localStorage.getItem('resources-saver-version'); | ||
if (version === '0.1.8') { | ||
try { | ||
const version = localStorage.getItem('resources-saver-version'); | ||
if (version === '2') { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
if (version === '0.1.9') { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.9/devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.8/devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
if (version === '0.1.9') { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.9/devtool.app.html', function (panel) { | ||
} catch { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.8/devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
}; | ||
|
||
init(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,28 @@ | ||
//console.log('Hello from -> Devtool'); | ||
|
||
const init = () => { | ||
const version = localStorage.getItem('resources-saver-version'); | ||
if (version === '0.1.8') { | ||
try { | ||
const version = localStorage.getItem('resources-saver-version'); | ||
if (version === '2') { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
if (version === '0.1.9') { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.9/devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.8/devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
if (version === '0.1.9') { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.9/devtool.app.html', function (panel) { | ||
} catch { | ||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'legacy/0.1.8/devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
} | ||
|
||
return chrome.devtools.panels.create('ResourcesSaver', 'icon.gif', 'devtool.app.html', function (panel) { | ||
console.log('Content is loaded to panel', panel); | ||
}); | ||
}; | ||
|
||
init(); |
Oops, something went wrong.