summaryrefslogtreecommitdiff
path: root/extension/background.js
diff options
context:
space:
mode:
authorOmar Rizwan <omar@omar.website>2021-03-14 17:24:04 -0700
committerOmar Rizwan <omar@omar.website>2021-03-14 17:24:04 -0700
commit00caad5228ef9793538a119470b203df3f3e04c1 (patch)
tree9fb230b79ad22609ae8c572ec187b65226adff2b /extension/background.js
parent8f33a2feab62fe6f4cc974f43de84dbbdb7b42e0 (diff)
downloadTabFS-00caad5228ef9793538a119470b203df3f3e04c1.tar.gz
TabFS-00caad5228ef9793538a119470b203df3f3e04c1.zip
extension: some cleanup, get rid of ToSafari thing we weren't using
Diffstat (limited to 'extension/background.js')
-rw-r--r--extension/background.js17
1 files changed, 0 insertions, 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);