mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-28 22:53:28 +00:00
Set Response.type to basic on same-origin requests
This commit is contained in:
@@ -95,7 +95,9 @@
|
||||
async function async(promise, cb) {
|
||||
const script_id = document.currentScript.id;
|
||||
const stack = new Error().stack;
|
||||
this._captured = {script_id: script_id, stack: stack};
|
||||
const value = await promise;
|
||||
// reset it, because await promise could change it.
|
||||
this._captured = {script_id: script_id, stack: stack};
|
||||
cb(value);
|
||||
this._captured = null;
|
||||
|
||||
Reference in New Issue
Block a user