mirror of
https://github.com/bitwarden/browser.git
synced 2025-02-09 00:11:30 +01:00
fix copying
This commit is contained in:
parent
1627ab4c65
commit
c713088a22
2
jslib
2
jslib
@ -1 +1 @@
|
||||
Subproject commit 1f9fbe43d7a78349e6fe994fa70d9b773af5c0f9
|
||||
Subproject commit bf9a9c5f9fb5933faeeb07a85f127373ebfe7284
|
@ -208,8 +208,8 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
copyToClipboard(text: string, options?: any): void {
|
||||
let win = window;
|
||||
let doc = window.document;
|
||||
if (options && options.window) {
|
||||
win = options.window;
|
||||
if (options && (options.window || options.win)) {
|
||||
win = options.window || options.win;
|
||||
doc = win.document;
|
||||
} else if (options && options.doc) {
|
||||
doc = options.doc;
|
||||
|
Loading…
Reference in New Issue
Block a user