Comparing version 1.5.0 to 1.5.1
Next Release | ||
------------- | ||
1.5.1 | ||
------ | ||
* Added download attribute check for IE11 in unload trigger. | ||
1.5.0 | ||
@@ -4,0 +9,0 @@ ------ |
@@ -363,2 +363,6 @@ 'use strict'; | ||
value: function unload() { | ||
// Need this line because IE11 & some safari trigger onbeforeunload despite presence of download attribute | ||
if (document.activeElement && document.activeElement.hasAttribute('download')) { | ||
return; | ||
} | ||
this.JSONRPC.notification('unload'); | ||
@@ -365,0 +369,0 @@ this.trigger('xfc.unload'); |
{ | ||
"name": "xfc", | ||
"version": "1.5.0", | ||
"version": "1.5.1", | ||
"description": "A Cross Frame Container that handles securely embedding web content into a 3rd party domain", | ||
@@ -5,0 +5,0 @@ "author": "Cerner Corporation", |
@@ -263,2 +263,6 @@ import JSONRPC from 'jsonrpc-dispatch'; | ||
unload() { | ||
// Need this line because IE11 & some safari trigger onbeforeunload despite presence of download attribute | ||
if (document.activeElement && document.activeElement.hasAttribute('download')) { | ||
return; | ||
} | ||
this.JSONRPC.notification('unload'); | ||
@@ -265,0 +269,0 @@ this.trigger('xfc.unload'); |
83075
1469