Skip to content

Commit

Permalink
Update notifier.js
Browse files Browse the repository at this point in the history
  • Loading branch information
myfrom authored May 31, 2018
1 parent 2c78869 commit 5048d51
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions notifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
const innerHTML =
(header ? `<h2>${header}</h2>` : '') +
(options.formatted ? content : `<paper-dialog-scrollable>${content}</paper-dialog-scrollable>`);
if (ShadyDOM.inUse) {
if ('ShadyDOM' in window && ShadyDOM.inUse) {
const template = document.createElement('template');
template.innerHTML = innerHTML;
dialog.innerHTML = '';
Expand Down Expand Up @@ -320,4 +320,4 @@
window.dispatchEvent(new CustomEvent('notifier-ready', { detail: window.Notifier }));
});

})();
})();

0 comments on commit 5048d51

Please sign in to comment.