@codingame/monaco-vscode-lifecycle-service-override 20.3.0 → 20.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codingame/monaco-vscode-lifecycle-service-override",
3
- "version": "20.3.0",
3
+ "version": "20.3.2",
4
4
  "private": false,
5
5
  "description": "VSCode public API plugged on the monaco editor - lifecycle service-override",
6
6
  "keywords": [],
@@ -15,7 +15,7 @@
15
15
  },
16
16
  "type": "module",
17
17
  "dependencies": {
18
- "@codingame/monaco-vscode-api": "20.3.0"
18
+ "@codingame/monaco-vscode-api": "20.3.2"
19
19
  },
20
20
  "main": "index.js",
21
21
  "module": "index.js",
@@ -127,7 +127,7 @@ let BrowserLifecycleService = class BrowserLifecycleService extends AbstractLife
127
127
  doResolveStartupKind() {
128
128
  let startupKind = super.doResolveStartupKind();
129
129
  if (typeof startupKind !== 'number') {
130
- const timing = performance.getEntriesByType('navigation').at(0);
130
+ const timing = mainWindow.performance.getEntriesByType('navigation').at(0);
131
131
  if (timing?.type === 'reload') {
132
132
  startupKind = StartupKind.ReloadedWindow;
133
133
  }