effie-tiktok-extension/extension/service-worker.js
2024-01-14 20:39:42 -05:00

11 lines
250 B
JavaScript

chrome.runtime.onMessage.addListener((request, sender, sendResponse) => {
chrome.cookies
.get({
url: "https://tiktok.com",
name: "msToken",
})
.then((cookie) => {
sendResponse(cookie.value);
});
return true;
});