mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-21 06:56:36 +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 open({path}) { return { fh: 0 }; },
|
||||||
async read({path, fh, size, offset}) {
|
async read({path, fh, size, offset}) {
|
||||||
const tabId = parseInt(pathComponent(path, -2));
|
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