Skip to content

Commit

Permalink
replaceState problem
Browse files Browse the repository at this point in the history
Route will be wrong if domain has substring 'php'.
eg. 'local.redis.phptest.com'.
So fix it.
  • Loading branch information
ares333 committed May 27, 2017
1 parent 5ed9bbe commit ec42e39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/frame.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$(function() {
if (history.replaceState) {
window.parent.history.replaceState({}, '', document.location.href.replace('?', '&').replace(/([a-z]*)\.php/, '?$1'));
window.parent.history.replaceState({}, '', document.location.href.replace('?', '&').replace(/\/([a-z]*)\.php/, '/?$1'));
}


Expand Down

0 comments on commit ec42e39

Please sign in to comment.