site: test whether linkjuice is defined not whether it's falsy

This commit is contained in:
Michael Bradley, Jr 2019-08-20 13:08:26 -05:00 committed by Michael Bradley
parent 7f1f313796
commit 178264bad9

View File

@ -45,7 +45,7 @@ document.addEventListener('DOMContentLoaded', function () {
e.clearSelection();
});
if (linkjuice) {
if (typeof linkjuice !== 'undefined') {
linkjuice.init('.o-standard-page', {
selectors: ['h2', 'h3', 'h4'],
icon: '#',
@ -55,4 +55,3 @@ document.addEventListener('DOMContentLoaded', function () {
});
}
});