diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-29 15:24:08 -0700 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2020-10-29 15:24:27 -0700 |
commit | 5ed6379687ff5273cbf9b5629a872d6b8aeaa36d (patch) | |
tree | 7e2a3eaee966b9358f73e2af9650b06bd40a6c76 /extension | |
parent | c85bb26264767f533e955013c4c5b8d7795164b7 (diff) |
Fix async bug on handler init. Can read url and title now! (kinda)
(they don't terminate properly, will fix that next)
Diffstat (limited to 'extension')
-rw-r--r-- | extension/background.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/extension/background.js b/extension/background.js index 15ac2db..bff62bb 100644 --- a/extension/background.js +++ b/extension/background.js @@ -51,7 +51,7 @@ function sanitize(s) { view of what the whole filesystem looks like at a glance. */ const router = {}; -async function withTab(handler) { +function withTab(handler) { return { async read(path, fh, size, offset) { const tab = await browser.tabs.get(parseInt(pathComponent(path, -2))); @@ -59,7 +59,7 @@ async function withTab(handler) { } }; } -async function fromScript(code) { +function fromScript(code) { return { async read(path, fh, size, offset) { const tabId = parseInt(pathComponent(path, -2)); |