fixes #115
This commit is contained in:
parent
8f8beb5099
commit
b9a23d8ce2
1 changed files with 2 additions and 2 deletions
|
@ -523,7 +523,7 @@ const onCommitted = d => {
|
||||||
frameId,
|
frameId,
|
||||||
code: `{
|
code: `{
|
||||||
const script = document.createElement('script');
|
const script = document.createElement('script');
|
||||||
script.textContent = \`{
|
script.src = 'data:text/javascript;charset=utf-8;base64,' + btoa(\`{
|
||||||
const o = JSON.parse('${JSON.stringify(o)}');
|
const o = JSON.parse('${JSON.stringify(o)}');
|
||||||
for (const key of Object.keys(o)) {
|
for (const key of Object.keys(o)) {
|
||||||
navigator.__defineGetter__(key, () => {
|
navigator.__defineGetter__(key, () => {
|
||||||
|
@ -536,7 +536,7 @@ const onCommitted = d => {
|
||||||
return o[key];
|
return o[key];
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}\`;
|
}\`);
|
||||||
document.documentElement.appendChild(script);
|
document.documentElement.appendChild(script);
|
||||||
script.remove();
|
script.remove();
|
||||||
}`
|
}`
|
||||||
|
|
Loading…
Reference in a new issue