From ef95516720382d052f9cc2e1496b40874069cc6f Mon Sep 17 00:00:00 2001 From: hackbansu Date: Sat, 8 Dec 2018 20:55:59 +0530 Subject: [PATCH] updated the app to work with the new jiosaavn.com. Updated the URL check condition --- app/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.js b/app/main.js index beff9cc..6ebb865 100755 --- a/app/main.js +++ b/app/main.js @@ -160,7 +160,7 @@ } }); - saavn.window.loadURL('https://www.saavn.com', { + saavn.window.loadURL('https://www.jiosaavn.com', { userAgent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/44.0.2403.52 Safari/537.36' }); @@ -233,7 +233,7 @@ e.preventDefault() // Opening saavn urls - if (url.replace('https://', '').replace('http://', '').indexOf('www.saavn.com') == 0) + if (url.replace('https://', '').replace('http://', '').indexOf('www.jiosaavn.com') == 0) saavn.window.loadURL(url) else // Open External URLs in the default web browser