fix copying

This commit is contained in:
Kyle Spearrin 2018-08-17 12:25:09 -04:00
parent 1627ab4c65
commit c713088a22
2 changed files with 3 additions and 3 deletions

2
jslib

@ -1 +1 @@
Subproject commit 1f9fbe43d7a78349e6fe994fa70d9b773af5c0f9
Subproject commit bf9a9c5f9fb5933faeeb07a85f127373ebfe7284

View File

@ -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;