My lightning component (V40/SU17) errors out when accessed via MS Edge with LockerService enabled. Is there a different method of accessing the window.location
?
WindowLocation.cmp
<aura:component implements="forceCommunity:availableForAllPageTypes" access="global" >
<aura:attribute name="url" type="String" />
<aura:handler name="init" value="{!this}" action="{!c.doInit}" />
<p>{!v.url}</p>
</aura:component>
WindowLocationController.js
({
doInit : function(component, event, helper) {
component.set("v.url", window.location.href);
}
})
WindowLocationDemo.app
<aura:application >
<c:WindowLocation />
</aura:application>
Here's the error when viewed in MS Edge
This page has an error. You might just need to refresh it. Action failed: c:WindowLocation$controller$doInit [WeakMap.prototype.set: 'key' is not an object] Failing descriptor: {c:WindowLocation$controller$doInit}