Skip to content

Commit 896eeba

Browse files
authored
Attach viewer libraries in islandora_mirador.module
Attach the viewer libraries to the variables array.
1 parent 970dec7 commit 896eeba

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

islandora_mirador.module

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ function template_preprocess_mirador(&$variables) {
118118
$viewer_config['themes'] = $theme_config;
119119
}
120120
$variables['#attached']['drupalSettings']['mirador']['viewers']["#{$variables['mirador_view_id']}"] = $viewer_config;
121+
122+
// Attach the viewer libraries.
123+
$variables['#attached']['library'][] = 'islandora_mirador/viewer';
121124
}
122125

123126
/**

0 commit comments

Comments
 (0)