mirror of
https://github.com/osnr/TabFS.git
synced 2024-04-30 13:02:47 +02:00
fix text bug
This commit is contained in:
parent
c826e20365
commit
d34ed5b28c
|
@ -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) }
|
||||
}
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue