diff --git a/octoprint_webcamtab/static/js/webcamtab.js b/octoprint_webcamtab/static/js/webcamtab.js index 80e7e4e..0c060a7 100644 --- a/octoprint_webcamtab/static/js/webcamtab.js +++ b/octoprint_webcamtab/static/js/webcamtab.js @@ -32,7 +32,7 @@ $(function() { var currentSrc = webcamImage.attr("src"); // safari bug doesn't release the mjpeg stream, so we just set it up the once - if (self.control._isSafari() && currentSrc != undefined) { + if (OctoPrint.coreui.browser.safari && currentSrc != undefined) { return; } diff --git a/setup.py b/setup.py index 33afba3..04194be 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ from setuptools import setup plugin_identifier = "webcamtab" plugin_package = "octoprint_webcamtab" plugin_name = "OctoPrint-WebcamTab" -plugin_version = "0.1.0" +plugin_version = "0.1.1" plugin_description = """Show webcam stream in separate tab""" plugin_author = "Sven Lohrmann" plugin_author_email = "malnvenshorn@gmail.com"