Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
sukhwinder33445 committed Aug 5, 2024
1 parent acf8795 commit 80eb42d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library/Icinga/Web/JavaScript.php
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public static function optimizeDefine($js, $filePath, $basePath, $packageName)
try {
$dependencies = $match[2] ? Json::decode($match[2]) : [];
foreach ($dependencies as &$dependencyName) {
if ($dependencyName === 'exports') {
if ($dependencyName === 'exports' || $dependencyName === 'Icinga') {
// exports is a special keyword and doesn't need optimization
continue;
}
Expand Down
2 changes: 2 additions & 0 deletions public/js/icinga.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@
return false;
}

define('Icinga', [], () => Icinga);

this.timezone = new Icinga.Timezone();
this.utils = new Icinga.Utils(this);
this.logger = new Icinga.Logger(this);
Expand Down

0 comments on commit 80eb42d

Please sign in to comment.