#9941 add url pandora_console for odometre
This commit is contained in:
parent
4d46e0234d
commit
7bb2293096
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue