From 00caad5228ef9793538a119470b203df3f3e04c1 Mon Sep 17 00:00:00 2001 From: Omar Rizwan Date: Sun, 14 Mar 2021 17:24:04 -0700 Subject: [PATCH] extension: some cleanup, get rid of ToSafari thing we weren't using --- extension/background.js | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/extension/background.js b/extension/background.js index f4737d0..b0f937d 100644 --- a/extension/background.js +++ b/extension/background.js @@ -368,19 +368,6 @@ router["/tabs/by-id"] = { }; })(); -// TODO: imports -// (function() { -// const imports = {}; -// // .json - autoparse, spit back out changes in data -// // .js -// // .png -// // write back modify -// router["/tabs/by-id/*/imports"] = { -// readdir({path}) { - -// } -// }; -// })(); router["/tabs/by-id/*/window"] = { // a symbolic link to /windows/[id for this window] async readlink({path}) { @@ -714,10 +701,6 @@ function findRoute(path) { let port; async function onMessage(req) { - // Safari / Safari extension app API forces you to adopt their - // {name, userInfo} structure for the request. - if (req.name === 'ToSafari') req = req.userInfo; - if (req.buf) req.buf = atob(req.buf); console.log('req', req);