mirror of
https://github.com/bitwarden/browser
synced 2025-12-12 22:33:35 +00:00
Modified Chrome to pass in null unicode on clear
This commit is contained in:
@@ -207,6 +207,10 @@ export default class BrowserPlatformUtilsService implements PlatformUtilsService
|
|||||||
this.clipboardWriteCallback(text, clearMs);
|
this.clipboardWriteCallback(text, clearMs);
|
||||||
}
|
}
|
||||||
} else if (doc.queryCommandSupported && doc.queryCommandSupported('copy')) {
|
} else if (doc.queryCommandSupported && doc.queryCommandSupported('copy')) {
|
||||||
|
if(this.isChrome() && text === '') {
|
||||||
|
text = '\u0000';
|
||||||
|
}
|
||||||
|
|
||||||
const textarea = doc.createElement('textarea');
|
const textarea = doc.createElement('textarea');
|
||||||
textarea.textContent = text == null || text === '' ? ' ' : text;
|
textarea.textContent = text == null || text === '' ? ' ' : text;
|
||||||
// Prevent scrolling to bottom of page in MS Edge.
|
// Prevent scrolling to bottom of page in MS Edge.
|
||||||
|
|||||||
Reference in New Issue
Block a user