Origin is undefined in Firefox.

This commit is contained in:
bootstraponline
2012-05-21 09:50:23 -06:00
parent 5be5cd5ba5
commit 5c642997fe
@@ -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) {