Skip to content

Commit 92a7ace

Browse files
authored
Merge pull request #30 from Willmac16/master
Python 3 support + Fix for #28
2 parents 5c4ba29 + 23560bc commit 92a7ace

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: octoprint_bettergrblsupport/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -978,6 +978,7 @@ def get_update_information(self):
978978
# can be overwritten via __plugin_xyz__ control properties. See the documentation for that.
979979

980980
__plugin_name__ = 'Better Grbl Support'
981+
__plugin_pythoncompat__ = ">=2.7,<4"
981982

982983
def __plugin_load__():
983984
global __plugin_implementation__

Diff for: octoprint_bettergrblsupport/static/js/bettergrblsupport.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ $(function() {
202202
var streamImg = document.getElementById("webcam_image_framing");
203203

204204
if (current == "#tab_plugin_bettergrblsupport") {
205-
streamImg.src = "/webcam/?action=stream&" + Math.floor(Math.random() * 1000000); ;
205+
streamImg.src = self.settings.settings.webcam.streamUrl() + "&nonce=" + Math.floor(Math.random() * 1000000);
206206
} else if (previous == "#tab_plugin_bettergrblsupport") {
207207
streamImg.src = "about:blank";
208208
}

0 commit comments

Comments
 (0)