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; }