11 lines
250 B
JavaScript
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;
|
|
});
|