SSR: fix merge/version conflicts
This commit is contained in:
parent
48af95d722
commit
50e656b259
@ -35,10 +35,15 @@ win.document.body.scrollTo = (() => {});
|
|||||||
win['ResizeObserver'] = ResizeObserver;
|
win['ResizeObserver'] = ResizeObserver;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
global['window'] = win;
|
global['window'] = win;
|
||||||
|
// @ts-ignore
|
||||||
global['document'] = win.document;
|
global['document'] = win.document;
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
global['history'] = { state: { } };
|
global['history'] = { state: { } };
|
||||||
global['navigator'] = win.navigator;
|
// @ts-ignore
|
||||||
|
Object.defineProperty(global, 'navigator', {
|
||||||
|
value: win.navigator,
|
||||||
|
writable: true
|
||||||
|
});
|
||||||
|
|
||||||
global['localStorage'] = {
|
global['localStorage'] = {
|
||||||
getItem: () => '',
|
getItem: () => '',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user