Created
November 30, 2016 21:34
-
-
Save ganesshkumar/2d23c2f3e8a8c81e41ee5f34ac49cc6b to your computer and use it in GitHub Desktop.
Hammerspoon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function showBrowser() | |
local wv = hs.webview.new(hs.screen.primaryScreen():frame()) | |
wv:url("http://www.google.com"):windowStyle({"titled", "closable", "resizable"}) :show() | |
-- bring the webview to front | |
hs.application.get("Hammerspoon"):activate() | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment