Skip to content

Commit

Permalink
Update MainActivity.java
Browse files Browse the repository at this point in the history
  • Loading branch information
prateek-chaubey authored Jun 25, 2024
1 parent a956048 commit 6dc573b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public void onPageFinished(WebView p1, String url) {

web.loadUrl("javascript:(function () { var script = document.createElement('script'); script.src='https://cdn.jsdelivr.net/npm/ytpro'; document.body.appendChild(script); })();");
web.loadUrl("javascript:(function () { var script = document.createElement('script'); script.src='https://cdn.jsdelivr.net/npm/ytpro/bgplay.js'; document.body.appendChild(script); })();");
if(dl) web.loadUrl("javascript:(function () {ytproDownVid();})();");
if(dl) web.loadUrl("javascript:(function () {window.location.hash='download';})();");
if(!url.contains("#bgplay") && isPlaying){
isPlaying=false;
stopService(new Intent(getApplicationContext(), ForegroundService.class));
Expand Down

0 comments on commit 6dc573b

Please sign in to comment.