mirror of
https://github.com/bitwarden/browser
synced 2025-12-16 16:23:44 +00:00
fix copying
This commit is contained in:
@@ -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