mirror of
https://github.com/NovaGM/ModuleBuilder.git
synced 2024-08-15 00:23:33 +00:00
[*Compat > Electron > Clipboard] Initial Add
This commit is contained in:
parent
3f561aff35
commit
4d1016516b
3 changed files with 21 additions and 1 deletions
7
moduleWrappers/electron/clipboard.js
Normal file
7
moduleWrappers/electron/clipboard.js
Normal file
|
@ -0,0 +1,7 @@
|
|||
export const writeText = (text) => { // Write text to clipboard
|
||||
return DiscordNative.clipboard.copy(text);
|
||||
};
|
||||
|
||||
export const readText = () => { // Read text from clipboard
|
||||
return DiscordNative.clipboard.read();
|
||||
};
|
1
moduleWrappers/electron/index.js
Normal file
1
moduleWrappers/electron/index.js
Normal file
|
@ -0,0 +1 @@
|
|||
export * as clipboard from './clipboard';
|
Loading…
Add table
Add a link
Reference in a new issue