Skip to content
Browse files

Origin is undefined in Firefox.

  • Loading branch information...
1 parent 5be5cd5 commit 5c642997fe984ed9e323efba5c39875cdf47b6d6 @bootstraponline bootstraponline committed May 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js
View
2 lib/gollum/frontend/public/gollum/livepreview/js/livepreview/livepreview.js
@@ -72,7 +72,7 @@ $.save = function( commitMessage ) {
var markdown = "markdown";
var txt = editorSession.getValue();
var msg = defaultCommitMessage();
- var newLocation = window.location.origin + "/" + pageName;
+ var newLocation = window.location.protocol + "//" + window.location.host + "/" + pageName;
// if &create=true then handle create instead of edit.
if (create) {

0 comments on commit 5c64299

Please sign in to comment.
Something went wrong with that request. Please try again.