1
0
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:
Kyle Spearrin 2019-02-26 22:40:53 -05:00
parent 21d011554c
commit 68f7557e44

View File

@ -188,4 +188,9 @@ export class ElectronPlatformUtilsService implements PlatformUtilsService {
const type = options ? options.type : null; const type = options ? options.type : null;
clipboard.writeText(text, type); clipboard.writeText(text, type);
} }
readFromClipboard(options?: any): Promise<string> {
const type = options ? options.type : null;
return Promise.resolve(clipboard.readText(type));
}
} }