mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
only use clipboard.writeText on firefox
This commit is contained in:
@@ -214,7 +214,7 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
} else if (options && options.doc) {
|
||||
doc = options.doc;
|
||||
}
|
||||
if ((win as any).navigator.clipboard && (win as any).navigator.clipboard.writeText) {
|
||||
if (this.isFirefox() && (win as any).navigator.clipboard && (win as any).navigator.clipboard.writeText) {
|
||||
(win as any).navigator.clipboard.writeText(text);
|
||||
} else if ((win as any).clipboardData && (win as any).clipboardData.setData) {
|
||||
// IE specific code path to prevent textarea being shown while dialog is visible.
|
||||
|
||||
Reference in New Issue
Block a user