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 a3d9383 + 30e6d2e commit 40f538fCopy full SHA for 40f538f
src/background.ts
@@ -1,12 +1,8 @@
1
chrome.runtime.onInstalled.addListener(() => {
2
console.log("拡張機能がインストールされました!");
3
- chrome.sidePanel.setOptions({
4
- path: "sidepanel/index.html",
5
- enabled: true,
6
- });
7
});
8
9
// ツールバーアイコンをクリックしたときにサイドパネルを開く
10
chrome.action.onClicked.addListener(async (tab) => {
11
- await chrome.sidePanel.open({ windowId: tab.windowId });
+ await chrome.sidePanel.open({ windowId: tab.windowId, tabId: tab.id });
12
src/sidepanel/index.html
@@ -1,4 +1,4 @@
-<!doctype html>
+<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
0 commit comments