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:
parent
172b9ba7d8
commit
82ede78844
@ -1,8 +1,8 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
package="com.cradle.iitc_mobile"
|
||||
android:versionCode="38"
|
||||
android:versionName="0.5.4.3">
|
||||
android:versionCode="39"
|
||||
android:versionName="0.5.5">
|
||||
|
||||
<uses-sdk
|
||||
android:minSdkVersion="14"
|
||||
|
@ -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);";
|
||||
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user