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

Nebula v8.9.5.7626 let bug with IE 11 #2144

Closed
terencehoverter opened this issue Apr 15, 2021 · 3 comments
Closed

Nebula v8.9.5.7626 let bug with IE 11 #2144

terencehoverter opened this issue Apr 15, 2021 · 3 comments
Labels
🪲 Bug Something isn't working. Frontend (Script) Related to the client-side JavaScript.
Milestone

Comments

@terencehoverter
Copy link
Contributor

Describe the Problem
Not sure if that build number is the last version that Supports IE 11 but there is a let keyword used on line 286 of nebula.js.

The temporary fix is to convert to:

for ( var i = 0; i < registrations.length; i++ ){ 
	registrations[i].unregister();
}

Environment Details
IE 11, Nebula v8.9.5.7626, Windows 10

Additional Information
2021 and still fighting Internet Explorer

@terencehoverter terencehoverter added the 🪲 Bug Something isn't working. label Apr 15, 2021
@chrisblakley chrisblakley added the Frontend (Script) Related to the client-side JavaScript. label Apr 15, 2021
@chrisblakley
Copy link
Owner

Hmm, I agree that your fix would do the trick, but it is strange that IE11 is looking inside the if ( 'serviceWorker' in navigator ){ conditional– which should be false in all versions of IE.

I can branch and commit an update to 8.9.5, but it is a little odd to me that this is even a problem.

@terencehoverter
Copy link
Contributor Author

terencehoverter commented Apr 15, 2021

Yeah that part gets me too. Correct me if I am wrong, but I believe the reason why it happens is because IE 11 partially supports the let keyword but only in certain declarations. I read somewhere that you could format it properly to work in a for but it doesn't work in the way you would expect. I suspect the formatting on this is causing a "syntax" error because its looking for the semi-colons in the for.

@chrisblakley
Copy link
Owner

Ok added this fix and also force-disabled theme updates while I was in there. I'll leave this branch active just in case we ever run into any other IE11 issues.

Good catch– thanks for letting me know.

@chrisblakley chrisblakley added this to the 9.0 Cat's Eye milestone May 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪲 Bug Something isn't working. Frontend (Script) Related to the client-side JavaScript.
Projects
None yet
Development

No branches or pull requests

2 participants