#9941 add url pandora_console for odometre

This commit is contained in:
Jonathan 2023-01-10 11:31:09 +01:00
parent 4d46e0234d
commit 7bb2293096
3 changed files with 4 additions and 3 deletions

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -226,7 +226,8 @@ export default class Odometer extends Item<OdometerProps> {
script.onload = () => {
odometerB.style.transform = `rotate(${rotate}turn)`;
};
script.src = `${document.dir} /pandora_console/include/javascript/pandora_alerts.js`;
var url_pandora = window.location.pathname.split("/")[1];
script.src = `${document.dir}/${url_pandora}/include/javascript/pandora_alerts.js`;
odometerA.appendChild(h1);
odometerA.appendChild(h2);
odometerContainer.appendChild(odometerB);