Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
oeyoews committed Mar 23, 2024
1 parent dcadadb commit 42899e7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
1 change: 0 additions & 1 deletion components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ declare module 'vue' {
ElIcon: typeof import('element-plus/es')['ElIcon']
ElInput: typeof import('element-plus/es')['ElInput']
ElLink: typeof import('element-plus/es')['ElLink']
ElSkeleton: typeof import('element-plus/es')['ElSkeleton']
ElSwitch: typeof import('element-plus/es')['ElSwitch']
ElTabPane: typeof import('element-plus/es')['ElTabPane']
ElTabs: typeof import('element-plus/es')['ElTabs']
Expand Down
18 changes: 7 additions & 11 deletions entrypoints/background.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
export default defineBackground(() => {
browser.runtime.onInstalled.addListener(async ({ reason }) => {
if (reason !== 'install') return;

await browser.tabs.create({
url: browser.runtime.getURL('/welcome.html'),
active: true,
});
});

// browser.runtime.onInstalled.addListener(async ({ reason }) => {
// if (reason !== 'install') return;
// await browser.tabs.create({
// url: browser.runtime.getURL('/welcome.html'),
// active: true,
// });
// });
// browser.browserAction.setTitle({ title: 'Usewiki2' });
// browser.browserAction.setBadgeText({ text: 'Usewiki2' });

// chrome.runtime.onMessage.addListener((message, sender, sendResponse) => {
// chrome.action.setBadgeText({ text: 'on' });
// });

/* chrome.runtime.onInstalled.addListener(function () {
chrome.contextMenus.create({
id: 'tiddlywiki',
Expand Down

0 comments on commit 42899e7

Please sign in to comment.