aboutsummaryrefslogtreecommitdiffstats
path: root/extension
diff options
context:
space:
mode:
authorOmar Rizwan <omar.rizwan@gmail.com>2020-12-02 16:57:06 -0800
committerOmar Rizwan <omar.rizwan@gmail.com>2020-12-02 16:57:06 -0800
commit506751b3d5b2b479ffe703acdac8fb595646ab25 (patch)
tree2e228509e5dced6077296b1b209a894425539ff6 /extension
parent71df7d372925af0b3225fb7f767e62b44cc88244 (diff)
fix write (base64-encoding)
Diffstat (limited to 'extension')
-rw-r--r--extension/background.js1
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 };