extension: some cleanup, get rid of ToSafari thing we weren't using

This commit is contained in:
Omar Rizwan 2021-03-14 17:24:04 -07:00
parent 8f33a2feab
commit 00caad5228

View file

@ -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"] = { router["/tabs/by-id/*/window"] = {
// a symbolic link to /windows/[id for this window] // a symbolic link to /windows/[id for this window]
async readlink({path}) { async readlink({path}) {
@ -714,10 +701,6 @@ function findRoute(path) {
let port; let port;
async function onMessage(req) { 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); if (req.buf) req.buf = atob(req.buf);
console.log('req', req); console.log('req', req);