From d34ed5b28cb797bfb08bff56da80b60913873c67 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Fri, 4 Dec 2020 11:31:26 -0800 Subject: fix text bug --- extension/background.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'extension') 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) } } }; } -- cgit v1.2.3