| 25 | removeListener(callback) { } |
| 26 | } |
| 27 | class 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 | } |
| 45 | var bridgeHelper = new EdgeBridgeHelper(); |
| 46 | class EdgeBridgeDebugLog { |
| 47 | constructor() { |
nothing calls this directly
no outgoing calls
no test coverage detected