mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-22 12:57:01 -04:00
Merge remote-tracking branch 'upstream/dev' into dev
This commit is contained in:
commit
5d00294ee5
17 changed files with 62 additions and 77 deletions
|
@ -17,11 +17,12 @@
|
|||
*/
|
||||
|
||||
import { definePluginSettings } from "@api/Settings";
|
||||
import { copyToClipboard } from "@utils/clipboard";
|
||||
import { Devs } from "@utils/constants";
|
||||
import definePlugin, { OptionType } from "@utils/types";
|
||||
import { saveFile } from "@utils/web";
|
||||
import { filters, mapMangledModuleLazy } from "@webpack";
|
||||
import { Clipboard, ComponentDispatch } from "@webpack/common";
|
||||
import { ComponentDispatch } from "@webpack/common";
|
||||
|
||||
const ctxMenuCallbacks = mapMangledModuleLazy('.tagName)==="TEXTAREA"||', {
|
||||
contextMenuCallbackWeb: filters.byCode('.tagName)==="INPUT"||'),
|
||||
|
@ -125,7 +126,7 @@ export default definePlugin({
|
|||
// Fix silly Discord calling the non web support copy
|
||||
{
|
||||
match: /\i\.\i\.copy/,
|
||||
replace: "Vencord.Webpack.Common.Clipboard.copy"
|
||||
replace: "Vencord.Util.copyToClipboard"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
@ -234,7 +235,7 @@ export default definePlugin({
|
|||
},
|
||||
{
|
||||
match: /\i\.\i\.copy(?=\(\i)/,
|
||||
replace: "Vencord.Webpack.Common.Clipboard.copy"
|
||||
replace: "Vencord.Util.copyToClipboard"
|
||||
}
|
||||
],
|
||||
all: true,
|
||||
|
@ -299,7 +300,7 @@ export default definePlugin({
|
|||
const selection = document.getSelection();
|
||||
if (!selection) return;
|
||||
|
||||
Clipboard.copy(selection.toString());
|
||||
copyToClipboard(selection.toString());
|
||||
},
|
||||
|
||||
cut() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue