ストレージ権限を削除

This commit is contained in:
2026-04-09 02:29:19 +09:00
parent 2a94e1124c
commit 0e1869aacf
5 changed files with 4 additions and 40 deletions
+1 -9
View File
@@ -1,6 +1,5 @@
import browser from "webextension-polyfill";
import type { Message } from "../shared/messages";
import { savePlaylist, getPlaylist } from "../shared/storage";
const LOG_PREFIX = "[yt-playlist-features:bg]";
@@ -11,15 +10,8 @@ browser.runtime.onMessage.addListener(
if (msg.type === "PLAYLIST_EXTRACTED") {
console.log(
LOG_PREFIX,
`Saving playlist: "${msg.data.metadata.title}" (${msg.data.extractedCount} videos)`,
`Playlist: "${msg.data.metadata.title}" (${msg.data.extractedCount} videos)`,
);
await savePlaylist(msg.data);
return;
}
if (msg.type === "GET_PLAYLIST") {
const data = await getPlaylist(msg.playlistId);
return { type: "PLAYLIST_RESPONSE", data } satisfies Message;
}
},
);