mirror of
https://github.com/pvrzz/Portage.git
synced 2026-08-12 03:46:30 +00:00
Add files via upload
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
Portage by pvrz
|
||||
https://github.com/pvrzz/Portage/
|
||||
File Name: background.js
|
||||
*/
|
||||
|
||||
const api = typeof browser !== "undefined" ? browser : chrome;
|
||||
|
||||
api.runtime.onInstalled.addListener(() => console.log("[Portage] installed."));
|
||||
|
||||
api.action.onClicked.addListener(() => {
|
||||
api.tabs.create({ url: api.runtime.getURL("dashboard.html") });
|
||||
});
|
||||
Reference in New Issue
Block a user