[Web Notifications] Subscribing to notifications in IE returns error

[Web Notifications] Subscribing to notifications in IE returns error

  
Forge Component
(8)
Published on 2017-05-18 by Henrique Batista
8 votes
Published on 2017-05-18 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.

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.


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


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