MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / EdgeBridgeHelper

Class EdgeBridgeHelper

extensions/edge/contentScriptsAPIBridge.js:27–44  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25 removeListener(callback) { }
26}
27class EdgeBridgeHelper {
28 constructor() {
29 this.fakeEvent = new FakeEvent();
30 }
31 toAbsolutePath(relativePath) {
32 if (relativePath.indexOf("ms-browser-extension://") == 0) {
33 return relativePath.replace(myBrowser.runtime.getURL(""), "");
34 }
35 else if (relativePath.indexOf("/") != 0) {
36 var absolutePath = "";
37 var documentPath = document.location.pathname;
38 absolutePath = documentPath.substring(0, documentPath.lastIndexOf("/") + 1);
39 absolutePath += relativePath;
40 return absolutePath;
41 }
42 return relativePath;
43 }
44}
45var bridgeHelper = new EdgeBridgeHelper();
46class EdgeBridgeDebugLog {
47 constructor() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected