Skip to content

Commit

Permalink
Fixed Security Vulnerabilities
Browse files Browse the repository at this point in the history
Fix #19 - Rebuilt the app with latest electron binaries

Close #18 - See https://help.rescuetime.com/article/59-how-do-i-enable-accessibility-permissions-on-mac-osx
  • Loading branch information
scriptspry committed Apr 14, 2019
1 parent 488099e commit badcf8b
Show file tree
Hide file tree
Showing 4 changed files with 682 additions and 576 deletions.
Binary file modified build/Saavn-darwin-x64/Saavn.zip
Binary file not shown.
6 changes: 4 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,11 @@ function createWindow() {
var handleUrl = function (e, url) {
e.preventDefault()

let host = url.replace(/^https?:\/\//ig, '');

// Opening saavn urls
if (url.replace('https://', '').replace('http://', '').indexOf('www.saavn.com') == 0)
mainWindow.loadURL(url)
if (host.includes('saavn.com'))
mainWindow.loadURL(url);
else
// Open External URLs in the default web browser
open(url)
Expand Down
Loading

0 comments on commit badcf8b

Please sign in to comment.