Enable process sandboxing (#1206)
This commit is contained in:
@@ -32,3 +32,14 @@ customSettingsSections.push(() => ({
|
||||
element: SettingsUi,
|
||||
className: "vc-vesktop-settings"
|
||||
}));
|
||||
|
||||
// TODO: remove this legacy workaround once some time has passed
|
||||
// @ts-expect-error
|
||||
if (!Vencord.Api.Styles.vencordRootNode) {
|
||||
const style = document.createElement("style");
|
||||
style.id = "vesktop-css-core";
|
||||
|
||||
VesktopNative.app.getRendererCss().then(css => (style.textContent = css));
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => document.documentElement.append(style), { once: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user