diff --git a/html/patient-snapshotter.html b/html/patient-snapshotter.html index 3632916..0a641e8 100644 --- a/html/patient-snapshotter.html +++ b/html/patient-snapshotter.html @@ -20,6 +20,7 @@ + diff --git a/js/patient-snapshotter.ts b/js/patient-snapshotter.ts index d247b47..b4c5ae7 100644 --- a/js/patient-snapshotter.ts +++ b/js/patient-snapshotter.ts @@ -226,12 +226,12 @@ window.addEventListener( 'message', evt => { // Don't allow popups iframe.contentWindow.open = function() { return { - focus: function() {}, - blur: function() {} + focus: _.noop, + blur: _.noop }; }; // FileSaver don't allow popup - iframe.contentWindow.saveAs = function() {}; + iframe.contentWindow.saveAs = _.noop; // We need to create an object with the iframe's Object.prototype as its prototype to pass our assertion checks const contentOptions = iframe.contentWindow.Object.create( iframe.contentWindow.Object.prototype, {