xfc
Advanced tools
Comparing version 1.8.0 to 1.8.1
Next Release | ||
------------- | ||
1.8.1 | ||
------ | ||
* Conditionally remove hasAttribute so it doesn't break on non-elements in IE10. #44 | ||
1.8.0 | ||
@@ -4,0 +9,0 @@ ------ |
@@ -379,3 +379,3 @@ 'use strict'; | ||
if (!element || !(element.hasAttribute('download') || protocols.test(element.href))) { | ||
if (!element || !(element.hasAttribute && element.hasAttribute('download') || protocols.test(element.href))) { | ||
this.JSONRPC.notification('unload'); | ||
@@ -382,0 +382,0 @@ this.trigger('xfc.unload'); |
@@ -38,3 +38,3 @@ 'use strict'; | ||
// Set hidden attribute with script if not present and security is being enforced | ||
if (enforceSecurity && window.self !== window.top && !document.documentElement.hasAttribute('hidden')) { | ||
if (enforceSecurity && window.self !== window.top && !(document.documentElement.hasAttribute && document.documentElement.hasAttribute('hidden'))) { | ||
document.documentElement.setAttribute('hidden', null); | ||
@@ -41,0 +41,0 @@ |
{ | ||
"name": "xfc", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "A Cross Frame Container that handles securely embedding web content into a 3rd party domain", | ||
@@ -20,2 +20,3 @@ "author": "Cerner Corporation", | ||
"lint-js": "eslint 'src/**/*.js' --fix", | ||
"prepare": "npm run build-es5 && npm run build-webpack", | ||
"test": "mocha --compilers js:babel-core/register --recursive" | ||
@@ -22,0 +23,0 @@ }, |
@@ -9,3 +9,2 @@ import JSONRPC from 'jsonrpc-dispatch'; | ||
/** Application class which represents an embedded application. */ | ||
@@ -277,3 +276,3 @@ class Application extends EventEmitter { | ||
if (!element || !(element.hasAttribute('download') || protocols.test(element.href))) { | ||
if (!element || !(element.hasAttribute && element.hasAttribute('download') || protocols.test(element.href))) { | ||
this.JSONRPC.notification('unload'); | ||
@@ -280,0 +279,0 @@ this.trigger('xfc.unload'); |
@@ -9,3 +9,3 @@ import Application from './application'; | ||
// Set hidden attribute with script if not present and security is being enforced | ||
if (enforceSecurity && window.self !== window.top && !document.documentElement.hasAttribute('hidden')) { | ||
if (enforceSecurity && window.self !== window.top && !(document.documentElement.hasAttribute && document.documentElement.hasAttribute('hidden'))) { | ||
document.documentElement.setAttribute('hidden', null); | ||
@@ -12,0 +12,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
88161