I am trying to run the screen-sharing demo locally on a Mac. For some reason, when I click the "connect" button, it doesn't do anything. But when running your demo, from your site, it does work. In the browser debugger, I see this:
I am simply running the HTML from a command line on Mac (file://) - is there some reason this has to be running under a web server in order to work?
Thanks,
-da
Which is here in screen-sharing.js:screen-sharing.js:32 Uncaught TypeError: Cannot read properties of undefined (reading 'sendMessage')
at screen-sharing.js:32
Why might this be?} else if (Browser.isChrome() && !Browser.isAndroid() && !Browser.isiOS()) {
interval = setInterval(function() {
chrome.runtime.sendMessage(extensionId, {type: "isInstalled"}, function (response) {
if (chrome.runtime.lastError) { //WCS-2369 - cacth runtime.lastError
(inIframe()) ? $("#installFromMarket").show() : $("#installExtensionButton").show();
clearInterval(interval);
onExtensionAvailable();
$('#woChromeExtension').prop('checked', true);
$('#woChromeExtension').prop('disabled', true);
extensionNotInstalled = true;
} else {
$("#extension").hide();
clearInterval(interval);
onExtensionAvailable();
}
});
I am simply running the HTML from a command line on Mac (file://) - is there some reason this has to be running under a web server in order to work?
Thanks,
-da