Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

new-win-policy #112

Open
ghost opened this issue May 1, 2014 · 1 comment
Open

new-win-policy #112

ghost opened this issue May 1, 2014 · 1 comment

Comments

@ghost
Copy link

ghost commented May 1, 2014

in node webkit I could do something like this to open links that have target=_blank in the default browser:

  win.on("new-win-policy", function(frame, url, policy) {
    policy.ignore();
    macgap.app.open(url);
})

Does macgap have something similar?

@ghost ghost closed this as completed May 1, 2014
@jeff-h jeff-h reopened this May 1, 2014
@jeff-h
Copy link
Member

jeff-h commented May 1, 2014

Hey @werian, could you add a brief comment on how you did this in MacGap, for anyone else who also has this issue?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant