Skip to content

Commit d78fc39

Browse files
authored
Update frames.erb
1 parent 2d197a3 commit d78fc39

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

templates/default/fulldoc/html/frames.erb

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55
<title><%= options.title %></title>
66
</head>
77
<script type="text/javascript">
8-
var match = unescape(window.location.hash).match(/^#!(.+)/);
8+
var match = decodeURIComponent(window.location.hash).match(/^#!(.+)/);
99
var name = match ? match[1] : '<%= url_for_main %>';
10-
name = name.replace(/^(\w+):\/\//, '').replace(/^\/\//, '');
11-
window.top.location = name;
10+
name = name.replace(/^((\w*):)?[\/\\]*/gm, '').trim();
11+
window.top.location.replace(name)
1212
</script>
1313
<noscript>
1414
<h1>Oops!</h1>

0 commit comments

Comments
 (0)