diff options
author | Omar Rizwan <omar@omar.website> | 2020-12-04 11:31:26 -0800 |
---|---|---|
committer | Omar Rizwan <omar@omar.website> | 2020-12-04 11:31:26 -0800 |
commit | d34ed5b28cb797bfb08bff56da80b60913873c67 (patch) | |
tree | f75447c69c1af0db18e9617fad36df76ab0a761d | |
parent | c826e20365f25b263fb94d35efa74dc7376c9883 (diff) |
fix text bug
-rw-r--r-- | extension/background.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/extension/background.js b/extension/background.js index c593866..0924e56 100644 --- a/extension/background.js +++ b/extension/background.js @@ -150,8 +150,7 @@ function fromScript(code) { async open({path}) { return { fh: 0 }; }, async read({path, fh, size, offset}) { const tabId = parseInt(pathComponent(path, -2)); - console.log(await browser.tabs.executeScript(tabId, {code})[0]); - return { buf: utf8(await browser.tabs.executeScript(tabId, {code})[0], offset, size) } + return { buf: utf8((await browser.tabs.executeScript(tabId, {code}))[0], offset, size) } } }; } |