diff options
author | 2023-11-01 11:38:13 -0600 | |
---|---|---|
committer | 2023-11-01 11:38:13 -0600 | |
commit | 264e704f3d59184ab6605c81538faf4e6234fefb (patch) | |
tree | bf15fb9ea4959d7e502bd68be0567d3533b6bb26 /src/components/services/content/WebviewCrashHandler.tsx | |
parent | feat(i18n): new Crowdin updates (#1437) (diff) | |
download | ferdium-app-264e704f3d59184ab6605c81538faf4e6234fefb.tar.gz ferdium-app-264e704f3d59184ab6605c81538faf4e6234fefb.tar.zst ferdium-app-264e704f3d59184ab6605c81538faf4e6234fefb.zip |
chore: upgrade used node and pnpm version (#1433)
- upgrade node and pnpm version in `engines`, `volta` and `packageManager` config
- upgrade `@types/node` to v20
- remove `react-loader` overrides from `peerDependencyRules.allowedVersions`
- remove `@npmcli/move-file` 2.0.1 from `allowedDeprecatedVersions`
- update node image to 20.9.0 in `Dockerfile`
- update required system dependencies in `CONTRIBUTING.md`
- update node version to 20.9.0 in `.nvmrc`
- correct type definitions for `setInterval` usage in `WebviewCrashHandler` and `AppStore` necessary due to `@types/node` upgrade
Diffstat (limited to 'src/components/services/content/WebviewCrashHandler.tsx')
-rw-r--r-- | src/components/services/content/WebviewCrashHandler.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/services/content/WebviewCrashHandler.tsx b/src/components/services/content/WebviewCrashHandler.tsx index e9b17e8aa..91c9cf927 100644 --- a/src/components/services/content/WebviewCrashHandler.tsx +++ b/src/components/services/content/WebviewCrashHandler.tsx | |||
@@ -36,7 +36,7 @@ interface IState { | |||
36 | 36 | ||
37 | @observer | 37 | @observer |
38 | class WebviewCrashHandler extends Component<IProps, IState> { | 38 | class WebviewCrashHandler extends Component<IProps, IState> { |
39 | countdownInterval: NodeJS.Timer | undefined; | 39 | countdownInterval: NodeJS.Timeout | undefined; |
40 | 40 | ||
41 | countdownIntervalTimeout = ms('1s'); | 41 | countdownIntervalTimeout = ms('1s'); |
42 | 42 | ||
@@ -58,7 +58,7 @@ class WebviewCrashHandler extends Component<IProps, IState> { | |||
58 | 58 | ||
59 | if (this.state.countdown <= 0) { | 59 | if (this.state.countdown <= 0) { |
60 | reload(); | 60 | reload(); |
61 | clearInterval(this.countdownInterval!); | 61 | clearInterval(this.countdownInterval); |
62 | } | 62 | } |
63 | }, this.countdownIntervalTimeout); | 63 | }, this.countdownIntervalTimeout); |
64 | } | 64 | } |