File tree 1 file changed +2
-2
lines changed
app/src/main/java/tk/therealsuji/vtopchennai
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -415,7 +415,7 @@ public void run() {
415
415
public void downloadTimetable () {
416
416
webView .evaluateJavascript ("(function() {" +
417
417
"var loading = document.getElementsByTagName('html')[0];" +
418
- "if(loading.innerHTML .toLowerCase().includes('just a moment ') || loading.innerHTML .toLowerCase().includes('please wait')) {" +
418
+ "if(loading.innerText .toLowerCase().includes('loading ') || loading.innerText .toLowerCase().includes('please wait')) {" +
419
419
"return 'loading';" +
420
420
"} else {" +
421
421
"var obj = {};" +
@@ -1256,7 +1256,7 @@ public void run() {
1256
1256
public void downloadAttendance () {
1257
1257
webView .evaluateJavascript ("(function() {" +
1258
1258
"var loading = document.getElementsByTagName('html')[0];" +
1259
- "if(loading.innerHTML .toLowerCase().includes('just a moment ') || loading.innerHTML .toLowerCase().includes('please wait')) {" +
1259
+ "if(loading.innerText .toLowerCase().includes('loading ') || loading.innerText .toLowerCase().includes('please wait')) {" +
1260
1260
"return 'loading';" +
1261
1261
"} else {" +
1262
1262
"var division = document.getElementById('getStudentDetails');" +
You can’t perform that action at this time.
0 commit comments