Fix changing workspace in Asana opens link in default browser (#47)

This commit is contained in:
Quang Lam 2019-11-27 17:50:40 -06:00 committed by GitHub
parent a2a8b0f73a
commit a625b44151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,6 +112,7 @@ const addView = (browserWindow, workspace) => {
if (
nextDomain === 'accounts.google.com'
|| nextDomain === 'feedly.com'
|| (curDomain.includes('asana.com') && nextDomain.includes('asana.com'))
) {
e.preventDefault();
view.webContents.loadURL(nextUrl);