mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-02 08:40:08 +01:00
Merge pull request #1321 from bitwarden/chrome-clipboard-clear-space-fix
Modified Chrome to pass in null unicode on clear
This commit is contained in:
commit
43c0669816
@ -207,6 +207,10 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
||||
this.clipboardWriteCallback(text, clearMs);
|
||||
}
|
||||
} else if (doc.queryCommandSupported && doc.queryCommandSupported('copy')) {
|
||||
if (this.isChrome() && text === '') {
|
||||
text = '\u0000';
|
||||
}
|
||||
|
||||
const textarea = doc.createElement('textarea');
|
||||
textarea.textContent = text == null || text === '' ? ' ' : text;
|
||||
// Prevent scrolling to bottom of page in MS Edge.
|
||||
|
Loading…
Reference in New Issue
Block a user