diff options
author | Omar Rizwan <omar.rizwan@gmail.com> | 2020-12-02 16:57:06 -0800 |
---|---|---|
committer | Omar Rizwan <omar.rizwan@gmail.com> | 2020-12-02 16:57:06 -0800 |
commit | 506751b3d5b2b479ffe703acdac8fb595646ab25 (patch) | |
tree | 2e228509e5dced6077296b1b209a894425539ff6 /extension | |
parent | 71df7d372925af0b3225fb7f767e62b44cc88244 (diff) |
fix write (base64-encoding)
Diffstat (limited to 'extension')
-rw-r--r-- | extension/background.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/extension/background.js b/extension/background.js index 03cba4b..759bd0d 100644 --- a/extension/background.js +++ b/extension/background.js @@ -359,6 +359,7 @@ function findRoute(path) { let port; async function onMessage(req) { + if (req.buf) req.buf = atob(req.buf); console.log('req', req); let response = { op: req.op, error: unix.EIO }; |