mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-03 21:25:13 +00:00
[PR #668] [MERGED] Fix for 664, open for comment. #1248
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ElectronNET/Electron.NET/pull/668
Author: @danatcofo
Created: 2/23/2022
Status: ✅ Merged
Merged: 4/6/2022
Merged by: @GregorBiswanger
Base:
master← Head:bug/644📝 Commits (2)
ab694e2Change IsReady logic to also wait for connection to be open. This is to prevent actions occurring before the app can act upon them.468c8ba#644 Check for null before taking actions. Also localize references to window on window creation📊 Changes
5 files changed (+700 additions, -347 deletions)
View changed files
📝
ElectronNET.API/LifetimeServiceHost.cs(+7 -2)📝
ElectronNET.Host/api/browserWindows.js(+373 -154)📝
ElectronNET.Host/api/browserWindows.js.map(+1 -1)📝
ElectronNET.Host/api/browserWindows.ts(+316 -186)📝
ElectronNET.WebApp/Startup.cs(+3 -4)📄 Description
This is a fix for #664 where the window will sometimes be null on doing a reload.
I am not quite sure it fixes the issue wholesale but it does prevent the javascript error from occurring. More testing is required and this PR is here for evaluation and comment. I do not consider it complete at this time.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.