Created
January 19, 2015 03:46
-
-
Save dwightwatson/d6861a4457999b32ce74 to your computer and use it in GitHub Desktop.
Toggle Homestead Bookmarklet
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
javascript:(function() { | |
var host = window.location.hostname.substring(0, window.location.hostname.indexOf('.')); | |
var newHost = window.location.port == "8000" ? host + '.com' : host + '.app:8000'; | |
window.location.href = 'http://' + newHost + window.location.pathname; | |
}()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment