refactoring
This commit is contained in:
12
popup/tip.js
12
popup/tip.js
@ -1,14 +1,14 @@
|
||||
$().ready(
|
||||
() => {
|
||||
$("#link-extension-detail").on('click', () => {
|
||||
window.onload = function () {
|
||||
document.querySelector('#link-extension-detail')
|
||||
.addEventListener('click', () => {
|
||||
chrome.tabs.create({
|
||||
'url': `chrome://extensions/?id=${chrome.runtime.id}`
|
||||
});
|
||||
})
|
||||
$("#link-document").on('click', () => {
|
||||
document.querySelector('#link-document')
|
||||
.addEventListener('click', () => {
|
||||
chrome.tabs.create({
|
||||
'url': `https://git.jebbs.co/jebbs/data-extracter-extesion`
|
||||
});
|
||||
})
|
||||
}
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user