Skip to content

Commit f985573

Browse files
WIP
1 parent 79971cb commit f985573

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

library/Icinga/Web/JavaScript.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ public static function optimizeDefine($js, $filePath, $basePath, $packageName)
238238
try {
239239
$dependencies = $match[2] ? Json::decode($match[2]) : [];
240240
foreach ($dependencies as &$dependencyName) {
241-
if ($dependencyName === 'exports') {
241+
if ($dependencyName === 'exports' || $dependencyName === 'Icinga') {
242242
// exports is a special keyword and doesn't need optimization
243243
continue;
244244
}

public/js/icinga.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,8 @@
9191
return false;
9292
}
9393

94+
define('Icinga', [], () => Icinga);
95+
9496
this.timezone = new Icinga.Timezone();
9597
this.utils = new Icinga.Utils(this);
9698
this.logger = new Icinga.Logger(this);

0 commit comments

Comments
 (0)