diff --git a/src/services/browserPlatformUtils.service.ts b/src/services/browserPlatformUtils.service.ts index 859ac29513..79b9c3b5d8 100644 --- a/src/services/browserPlatformUtils.service.ts +++ b/src/services/browserPlatformUtils.service.ts @@ -6,6 +6,8 @@ import { DeviceType } from 'jslib/enums'; import { PlatformUtilsService } from 'jslib/abstractions'; +import { UtilsService } from 'jslib/services'; + const AnalyticsIds = { [DeviceType.Chrome]: 'UA-81915606-6', [DeviceType.Firefox]: 'UA-81915606-7', @@ -170,6 +172,11 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService return true; } + copyToClipboard(text: string, options?: any): void { + const doc = options ? options.doc : null; + UtilsService.copyToClipboard(text, doc); + } + private sidebarViewName(): string { if ((window as any).chrome.sidebarAction && this.isFirefox()) { return 'sidebar';