Custom Template in Azure B2C doesn't work in IE11 when JavaScript is enabled

半腔热情 提交于 2020-02-04 01:23:10

问题


I have a SignIn V2 policy in Azure Active Directory B2C

I also enabled JavaScript

Because I use it to manipulate some elements in the form.

This configuration works well in Google Chrome, but whenever I try to run it in Internet Explorer 11, I get

SCRIPT1002: Syntax error

In the console, and the login button doesn't respond.

This happens when JavaScript is enabled. When I disable it, the page works in IE11 (But my manipulations don't).

Has anyone encountered this problem before?


回答1:


I found out what the problem was. I was using ES6 syntax such as

() => {
  ...
}

Once I replaced it to

function () {
  ...
}

It worked on IE11.

Thank you @Thomas and @Zhi Lv - MSFT



来源:https://stackoverflow.com/questions/56732188/custom-template-in-azure-b2c-doesnt-work-in-ie11-when-javascript-is-enabled

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!