mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-05-09 12:34:58 -05:00
Fix room links
Room links were broken by a mistake in the port number detection commit.
This commit is contained in:
parent
9c55f485b5
commit
a171908cec
|
|
@ -323,7 +323,7 @@ var Tools = {
|
|||
var onclick;
|
||||
var r = new RegExp('^https?://' +
|
||||
document.location.hostname.replace(/\./g, '\\.') +
|
||||
'(\\:[0-9]+)?/([a-zA-Z0-9-]+)$');
|
||||
'/([a-zA-Z0-9-]+)$');
|
||||
var m = r.exec(fulluri);
|
||||
if (m) {
|
||||
onclick = "return selectTab('" + m[1] + "');";
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user