Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix null reference timing problem in Chrome #263

Merged
merged 1 commit into from
Jan 29, 2025

Conversation

NextNebula
Copy link
Contributor

@NextNebula NextNebula commented Jan 27, 2025

A fix done in #44 causes problems reported in #259.

I haven't dug deep into the firefox problem that should have been fixed by the change, but it does cause problems in Chrome and maybe other browsers.

document-viewer.component.ts:18 TypeError: Cannot read properties of null (reading 'location')

Seems to be a timing problem, because setting the src after the component is loaded does not cause the error. As the code worked fine in chrome before the change I made a combination that should fix both problems.

@enorfelt
Copy link

@codehippie1 could you please take a look at this? :)

@codehippie1 codehippie1 merged commit f16df40 into intbot:master Jan 29, 2025
@codehippie1
Copy link
Contributor

Merged

@codehippie1
Copy link
Contributor

I will release this with an upgrade to Angular 19, working on merging a PR for 19.

@enorfelt
Copy link

Will it be compatible with Angular 18?

@enorfelt
Copy link

Or could you release a patch version in 18?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants