Skip to content

Commit

Permalink
Revert "fix: remove mystery webpack code"
Browse files Browse the repository at this point in the history
This reverts commit eb14d52.
  • Loading branch information
ozyx committed Mar 27, 2024
1 parent ebe00fd commit a42daad
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions openmct.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@
* at runtime from the About dialog for additional information.
*****************************************************************************/

const matcher = /\/openmct.js$/;
if (document.currentScript) {
let src = document.currentScript.src;
if (src && matcher.test(src)) {
// eslint-disable-next-line no-undef
__webpack_public_path__ = src.replace(matcher, '') + '/';
}
}

/**
* @typedef {Object} BuildInfo
* @property {string} version
Expand Down

0 comments on commit a42daad

Please sign in to comment.