Origin is undefined in Firefox.
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user