Skip to content

Commit

Permalink
Merge pull request #5 from mathiasbynens/patch-2
Browse files Browse the repository at this point in the history
Fix permalinks that contain a regexp
  • Loading branch information
jviereck committed Oct 22, 2013
2 parents c4a2458 + bb39ee7 commit c4d4a0f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/index.js
Expand Up @@ -184,7 +184,7 @@ window.onload = function() {
editor._overlay = null;

var hashData = parseHash();
if ('regexp' in hashData) regExpDom.value = hashData.regexp;
if ('regexp' in hashData) regExpEditor.setValue(hashData.regexp);
if ('input' in hashData) editor.setValue(hashData.input);

var matchItTimer = null;
Expand All @@ -202,4 +202,4 @@ window.onload = function() {
regExpDom.addEventListener('keyup', scheduleMatchIt);

matchIt();
}
}

0 comments on commit c4d4a0f

Please sign in to comment.