ストレージ権限を削除
This commit is contained in:
@@ -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;
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user