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:
@ -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);";
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user