mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
fix copying
This commit is contained in:
2
jslib
2
jslib
Submodule jslib updated: 1f9fbe43d7...bf9a9c5f9f
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user