1
0
mirror of https://github.com/bitwarden/browser synced 2024-12-25 01:22:26 +01:00

implement showdialog

This commit is contained in:
Kyle Spearrin 2018-02-02 23:46:30 -05:00
parent 479346faf0
commit a18cd026f0

View File

@ -160,6 +160,11 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
return this.isChrome() || this.isOpera(); return this.isChrome() || this.isOpera();
} }
showDialog(text: string, title?: string, confirmText?: string, cancelText?: string, type?: string) {
// TODO
return Promise.resolve(true);
}
private sidebarViewName(): string { private sidebarViewName(): string {
if ((window as any).chrome.sidebarAction && this.isFirefox()) { if ((window as any).chrome.sidebarAction && this.isFirefox()) {
return 'sidebar'; return 'sidebar';