Skip to content

Commit 74ca74b

Browse files
authored
Fix broken images if octoprint is not at website's root (#134)
* Led status icon : relative URL Make the URLs for the LED status icons relative, for them to work outside root (with Octoprint URLs like http://example.website/octoprint/ )
1 parent 8778699 commit 74ca74b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

octoprint_ws281x_led_status/static/js/ws281x_led_status.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ $(function () {
1515
self.torch_toggle = ko.observable(true);
1616

1717
var torch_on_src =
18-
"/plugin/ws281x_led_status/static/svg/flashlight.svg";
18+
"./plugin/ws281x_led_status/static/svg/flashlight.svg";
1919
var torch_off_src =
20-
"/plugin/ws281x_led_status/static/svg/flashlight-outline.svg";
20+
"./plugin/ws281x_led_status/static/svg/flashlight-outline.svg";
2121

2222
self.lights_on = ko.observable(true);
2323
self.torch_on = ko.observable(false);

0 commit comments

Comments
 (0)