mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-24 12:06:15 +01:00
Reapply removal of dead code
This commit is contained in:
parent
a7cf0b7dde
commit
95846277bb
@ -133,16 +133,6 @@ export class BrowserApi {
|
||||
}
|
||||
}
|
||||
|
||||
static getAssetUrl(path: string): Promise<string> {
|
||||
if (BrowserApi.isChromeApi) {
|
||||
return Promise.resolve(chrome.extension.getURL(path));
|
||||
} else if (BrowserApi.isSafariApi) {
|
||||
return SafariApp.sendMessageToApp('getAppPath');
|
||||
} else {
|
||||
return Promise.resolve(null);
|
||||
}
|
||||
}
|
||||
|
||||
static messageListener(name: string, callback: (message: any, sender: any, response: any) => void) {
|
||||
if (BrowserApi.isChromeApi) {
|
||||
chrome.runtime.onMessage.addListener((msg: any, sender: any, response: any) => {
|
||||
|
@ -205,13 +205,6 @@ class SafariExtensionViewController: SFSafariExtensionViewController, WKScriptMe
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if command == "getAppPath" {
|
||||
SFSafariExtension.getBaseURI(completionHandler: { uri in
|
||||
if uri != nil {
|
||||
m!.responseData = uri!.absoluteString
|
||||
self.replyMessage(message: m!)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user