We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fa81e77 commit d384f37Copy full SHA for d384f37
2 files changed
src/app/service/content/gm_api.ts
@@ -299,6 +299,10 @@ export default class GMApi {
299
details: GMTypes.CookieDetails,
300
done: (cookie: GMTypes.Cookie[] | any, error: any | undefined) => void
301
) {
302
+ // 如果url和域名都没有,自动填充当前url
303
+ if (!details.url && !details.domain) {
304
+ details.url = window.location.href;
305
+ }
306
this.sendMessage("GM_cookie", [action, details])
307
.then((resp: any) => {
308
done && done(resp, undefined);
src/app/service/service_worker/gm_api.ts
@@ -530,7 +530,7 @@ export default class GMApi {
530
requestHeaders.push({
531
header: key,
532
operation: chrome.declarativeNetRequest.HeaderOperation.SET,
533
- value: headerValue,
+ value: headerValue.toString(),
534
});
535
deleteHeader = true;
536
}
0 commit comments