SSR: fix merge/version conflicts

This commit is contained in:
Mononaut 2024-01-25 16:08:58 +00:00
parent 48af95d722
commit 50e656b259
No known key found for this signature in database
GPG Key ID: A3F058E41374C04E

View File

@ -35,10 +35,15 @@ win.document.body.scrollTo = (() => {});
win['ResizeObserver'] = ResizeObserver;
// @ts-ignore
global['window'] = win;
// @ts-ignore
global['document'] = win.document;
// @ts-ignore
global['history'] = { state: { } };
global['navigator'] = win.navigator;
// @ts-ignore
Object.defineProperty(global, 'navigator', {
value: win.navigator,
writable: true
});
global['localStorage'] = {
getItem: () => '',