remove legacy vencorddesktop aliases

This commit is contained in:
Vendicated 2023-10-21 22:25:16 +02:00
parent 573a953a2f
commit 7b0f64a9fc
No known key found for this signature in database
GPG key ID: D66986BAF75ECF18
3 changed files with 1 additions and 12 deletions

View file

@ -71,11 +71,7 @@ await Promise.all([
tsconfig: "./scripts/build/tsconfig.esbuild.json",
external: ["@vencord/types/*"],
plugins: [vencordDep],
// TODO: remove legacy name once main Vencord codebase has migrated and some time has passed.
// this 0 is very important. we run this script via webFrame.executeJavaScript and the last
// expression will be the return value. Without the 0, the return value would be Vesktop which
// leads to "An object could not be cloned"
footer: { js: ";window.VencordDesktop=Vesktop;0 \n//# sourceURL=VCDRenderer" }
footer: { js: "//# sourceURL=VCDRenderer" }
})
]);

View file

@ -11,8 +11,6 @@ import { IpcEvents } from "../shared/IpcEvents";
import { VesktopNative } from "./VesktopNative";
contextBridge.exposeInMainWorld("VesktopNative", VesktopNative);
// TODO: remove legacy alias once main Vencord codebase has migrated and some time has passed
contextBridge.exposeInMainWorld("VencordDesktopNative", VesktopNative);
require(ipcRenderer.sendSync(IpcEvents.GET_VENCORD_PRELOAD_FILE));

View file

@ -3,8 +3,3 @@
[class|=listItem]:has(+ [class|=listItem] [data-list-item-id=guildsnav___app-download-button]) {
display: none;
}
/* FIXME: Remove after 23/08/23 */
.vc-desktop-settings {
display: none;
}