mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 08:43:33 +00:00
implement readFromClipboard for electron utils
This commit is contained in:
@@ -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));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user