95
Views
3
Comments
[Web Notifications] Subscribing to notifications in IE returns error
Question
web-notifications
Web icon
Forge asset by Henrique Batista

When I am using IE11, and I click on the subscribe/unsubscribe checkbox, I get an error stating: 

       

Object doesn't support property or method 'repeat'


Not sure where it is coming from though.
2017-07-05 22-17-18
Henrique Batista
Staff

Hey Shahin,

I'm afraid that they're not compatible with IE at all.

If you go to the component details on forge, you can find a link to the browser limitations by MDN.


2023-04-03 21-05-20
Shahin Keshavari

Henrique Batista wrote:

Hey Shahin,

I'm afraid that they're not compatible with IE at all.

If you go to the component details on forge, you can find a link to the browser limitations by MDN.


Hey Henrique,

Thanks for the fast reply. Unfortunately it is so. Do you know of a way to hide the subscribe button altogether when a user is on IE11? That would atleast hide the possibility to see the error


2017-07-05 22-17-18
Henrique Batista
Staff

If you're using a Silk based theme, you have the browser class next to the Page class, like this:

You can do a selector like:

.ie11 .myButtonClass {
  display: none;
}

Also on the Preparation, if you look at the user Agent you'll know which browser made the request.

You can use the Action GetUserAgent from HTTPRequestHandler.

Last, you can do it through javascript, take a look on this post.

Cheers



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.