mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-12 05:36:46 +00:00
site: test whether linkjuice is defined not whether it's falsy
This commit is contained in:
parent
7f1f313796
commit
178264bad9
@ -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 () {
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user