Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crashes on ChromeBox #13

Closed
zekim opened this issue Dec 24, 2014 · 2 comments
Closed

Crashes on ChromeBox #13

zekim opened this issue Dec 24, 2014 · 2 comments

Comments

@zekim
Copy link

zekim commented Dec 24, 2014

I am running the software on an ASUS Chromebox and have encountered a minor issue.

When the Chromebox is hooked up to an ethernet connection, everything works fine. However, when the Chromebox runs off of Wi-Fi the Kiosk software crashes at startup.

I believe that the issue is that the software is trying to fetch the webpage before a network connection is available as the Wi-Fi takes longer to startup than ethernet.

Is it possible to add a check for navigator.online before attempting to load the webpage?

Something along these lines:
function launch()
{

if (navigator.onLine)
{
chrome.storage.local.get('url',function(x){
$('#browser').attr('src',x["url"]).get(0).reload();
});
}
else
{
setTimeout(launch,10000);
}
}

@matt-cook
Copy link
Member

Thanks for the detailed report. I'll post a patch on Friday when I'm back
in the office. Merry Christmas.

On Wednesday, December 24, 2014, Michael Zebrowski [email protected]
wrote:

I am running the software on an ASUS Chromebox and have encountered a
minor issue.

When the Chromebox is hooked up to an ethernet connection, everything
works fine. However, when the Chromebox runs off of Wi-Fi the Kiosk
software crashes at startup.

I believe that the issue is that the software is trying to fetch the
webpage before a network connection is available as the Wi-Fi takes longer
to startup than ethernet.

Is it possible to add a check for navigator.online before attempting to
load the webpage?

Something along these lines:
function launch()
{

if (navigator.onLine)
{

chrome.storage.local.get('url',function(x){
$('#browser').attr('src',x["url"]).get(0).reload();
});
}
else
{
setTimeout(launch,10000);
}

}


Reply to this email directly or view it on GitHub
https://github.com/zebradog/kiosk/issues/13.

@matt-cook
Copy link
Member

Hi Michael. The only "crash" I was able to reproduce was the page load error show in the webview when it failed to connect to the page. It will now (as of v5.1.2) attempt to reconnect once a second if the webview fails to load. Did this fix the issue for you?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants