fix running IITC at startup on mobile. we don't have jquery, so $(document) isn't available.

not sure if there's a native method to easily set the document.ready event, but a 1ms setTimeout will work just fine instead.
This commit is contained in:
Jon Atkins
2013-08-28 00:09:58 +01:00
parent 172b9ba7d8
commit 82ede78844
2 changed files with 3 additions and 3 deletions

View File

@ -137,7 +137,7 @@ public class IITC_WebViewClient extends WebViewClient {
// Since the mobile client injects IITC by replacing the gen_dashboard
// file, IITC runs to early. The document.ready delays IITC long enough
// so it boots correctly.
this.mIitcScript = "$(document).ready(function(){" + js + "});";
this.mIitcScript = "setTimeout(function(){" + js + "},1);";
}