Skip to content

Commit

Permalink
FIX: JS File Loading Order
Browse files Browse the repository at this point in the history
- would intermittently fail to load `ClipboardJS` if Glancer plugin was not installed
  • Loading branch information
aljawaid committed May 19, 2023
1 parent 1c92221 commit ea588e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ public function initialize()

// JS - Asset Hook
// - Keep filename lowercase
$this->hook->on('template:layout:js', array('template' => 'plugins/PluginManager/Assets/js/plugin-manager.js'));
$this->hook->on('template:layout:js', array('template' => 'plugins/PluginManager/Assets/js/plugin-manager-top-btn.js'));
if (!file_exists('plugins/Glancer')) {
$this->hook->on('template:layout:js', array('template' => 'plugins/PluginManager/Assets/js/clipboard-v2.0.11.min.js'));
}
$this->hook->on('template:layout:js', array('template' => 'plugins/PluginManager/Assets/js/plugin-manager.js'));

// Helper
$this->helper->register('ageHelper', '\Kanboard\Plugin\PluginManager\Helper\AgeHelper');
Expand Down

0 comments on commit ea588e2

Please sign in to comment.