Skip to content

Commit

Permalink
Merge pull request #1000 from City-of-Helsinki/UHF-X_hyphenopoly_fix
Browse files Browse the repository at this point in the history
UHF-X Hyphenopoly fix
  • Loading branch information
khalima authored Jun 3, 2024
2 parents 5e63097 + dd0836c commit 0733b0f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion dist/js/hyphenopoly_settings.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/js/hyphenopoly_settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@
((Drupal) => {
Drupal.behaviors.hyphenopoly = {
attach: () => {

// eslint-disable-next-line no-undef
if (typeof Hyphenopoly === 'undefined' || !Hyphenopoly) {
return;
}

// eslint-disable-next-line no-undef
Hyphenopoly.config({
require: {
Expand Down

0 comments on commit 0733b0f

Please sign in to comment.