File tree Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Expand file tree Collapse file tree 4 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ Cerner Corporation
10
10
- Supriti Yeotikar [ @supritiy ]
11
11
- Cody Price [ @dev-cprice ]
12
12
- Roxanne Calderon [ @foxannefoxanne ]
13
+ - Yusuf Ali [ @yusufali2205 ]
13
14
14
15
[ @mhemesath ] : https://github.com/mhemesath
15
16
[ @kafkahw ] : https://github.com/kafkahw
@@ -21,3 +22,4 @@ Cerner Corporation
21
22
[ @supritiy ] : https://github.com/supriticerner
22
23
[ @dev-cprice ] : https://github.com/dev-cprice
23
24
[ @foxannefoxanne ] : https://github.com/foxannefoxanne
25
+ [ @yusufali2205 ] : https://github.com/yusufali2205
Original file line number Diff line number Diff line change 17
17
"clean" : " rm -rf dist lib doc" ,
18
18
"dev" : " webpack-dev-server --config webpack.config.dev.js" ,
19
19
"lint-js" : " eslint 'src/**/*.js' --fix" ,
20
+ "prepare" : " npm run build-es5 && npm run build-webpack" ,
20
21
"test" : " mocha --compilers js:babel-core/register --recursive"
21
22
},
22
23
"dependencies" : {
Original file line number Diff line number Diff line change @@ -6,7 +6,6 @@ import logger from '../lib/logger';
6
6
import { getOffsetHeightToBody , calculateHeight , calculateWidth } from '../lib/dimension' ;
7
7
import MutationObserver from 'mutation-observer' ;
8
8
9
-
10
9
/** Application class which represents an embedded application. */
11
10
class Application extends EventEmitter {
12
11
/**
@@ -273,7 +272,7 @@ class Application extends EventEmitter {
273
272
const protocols = / ^ ( t e l | m a i l t o | f a x | s m s | c a l l t o ) : / ;
274
273
const element = document . activeElement ;
275
274
276
- if ( ! element || ! ( element . hasAttribute ( 'download' ) || protocols . test ( element . href ) ) ) {
275
+ if ( ! element || ! ( element . hasAttribute && element . hasAttribute ( 'download' ) || protocols . test ( element . href ) ) ) {
277
276
this . JSONRPC . notification ( 'unload' ) ;
278
277
this . trigger ( 'xfc.unload' ) ;
279
278
}
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ class Provider {
6
6
const enforceSecurity = config . secret || config . acls . some ( ( x ) => x !== '*' ) ;
7
7
8
8
// Set hidden attribute with script if not present and security is being enforced
9
- if ( enforceSecurity && window . self !== window . top && ! document . documentElement . hasAttribute ( 'hidden' ) ) {
9
+ if ( enforceSecurity && window . self !== window . top && ! ( document . documentElement . hasAttribute && document . documentElement . hasAttribute ( 'hidden' ) ) ) {
10
10
document . documentElement . setAttribute ( 'hidden' , null ) ;
11
11
12
12
// WARNING: Setting hidden attribute with script can be countered by
You can’t perform that action at this time.
0 commit comments