mirror of
https://github.com/osnr/TabFS.git
synced 2024-06-08 08:52:20 +02:00
extension: some cleanup, get rid of ToSafari thing we weren't using
This commit is contained in:
parent
8f33a2feab
commit
00caad5228
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue