Skip to content

Commit

Permalink
remove legacy vencorddesktop aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
Vendicated committed Oct 21, 2023
1 parent 573a953 commit 7b0f64a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 12 deletions.
6 changes: 1 addition & 5 deletions scripts/build/build.mts
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
})
]);

Expand Down
2 changes: 0 additions & 2 deletions src/preload/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));

Expand Down
5 changes: 0 additions & 5 deletions src/renderer/hideGarbage.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

0 comments on commit 7b0f64a

Please sign in to comment.