import { create } from "@coder/app/common/src/app"; import { tcpHost } from "./chome"; create({ storage: { get: (key: string): Promise => { return new Promise((resolve, reject): void => { try { chrome.storage.sync.get(key, (items) => { resolve(items[key]); }); } catch (ex) { reject(ex); } }); }, set: (key: string, value: T): Promise => { return new Promise((resolve, reject): void => { try { chrome.storage.sync.set({ [key]: value, }, () => { resolve(); }); } catch (ex) { reject(ex); } }); }, }, tcp: tcpHost, node: document.getElementById("main") as HTMLDivElement, });