MacGapProject / MacGap1

Desktop WebKit wrapper for HTML/CSS/JS applications.
Other
3.55k stars 209 forks source link

Reload window #113

Closed ghost closed 10 years ago

ghost commented 10 years ago

In node webkit I can do:

 require("nw.gui").Window.get().reload(3);

Anything like this for macgap?

jeff-h commented 10 years ago

Nothing right now. This should be trivial — I will add it over the weekend.

https://developer.apple.com/library/mac/documentation/Cocoa/Reference/Webkit/Classes/WebView_Class/Reference/Reference.html#//apple_ref/occ/instm/WebView/reload:

gobijan commented 10 years ago

For me this works:

window.location.reload()

jeff-h commented 10 years ago

Ha, nice one! @tschundeee thanks for saving me some time :)

I've documented this at https://github.com/maccman/macgap/wiki/JavaScript-developer-hints