Skip to content
This repository has been archived by the owner on Oct 29, 2019. It is now read-only.

Commit

Permalink
Opening file system when pressing "show console" - solved
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex-Neculai committed Jan 15, 2018
1 parent 0649a18 commit 07fb3d9
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions source/public/wyliodrin.js
Expand Up @@ -121,11 +121,15 @@ if (nodeRequire)
{
if ($(event.target).is ('a'))
{
console.log (event.target);
var ui = nodeRequire ('nw.gui');
ui.Shell.openExternal ($(event.target).attr ('href'));
event.stopPropagation ();
event.preventDefault ();
let href = $(event.target).attr('href');
if (href !== '' && href !== '#')
{
console.log (event.target);
var ui = nodeRequire ('nw.gui');
ui.Shell.openExternal (href);
event.stopPropagation ();
event.preventDefault ();
}
}
});
}
Expand Down

0 comments on commit 07fb3d9

Please sign in to comment.