mirror of
https://github.com/mempool/mempool.git
synced 2025-02-24 06:47:52 +01:00
SSR: fix merge/version conflicts
This commit is contained in:
parent
48af95d722
commit
50e656b259
1 changed files with 6 additions and 1 deletions
|
@ -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: () => '',
|
||||
|
|
Loading…
Add table
Reference in a new issue