mirror of
https://github.com/bitwarden/browser.git
synced 2024-11-07 09:31:31 +01:00
implement readFromClipboard for electron utils
This commit is contained in:
parent
21d011554c
commit
68f7557e44
@ -188,4 +188,9 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
|
||||
const type = options ? options.type : null;
|
||||
clipboard.writeText(text, type);
|
||||
}
|
||||
|
||||
readFromClipboard(options?: any): Promise<string> {
|
||||
const type = options ? options.type : null;
|
||||
return Promise.resolve(clipboard.readText(type));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user