Skip to content

Commit 304bc07

Browse files
committed
Fixed replay.
1 parent af019d5 commit 304bc07

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Replay/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ function a(){
429429
if(b.id === 'default-option'){return 1;}
430430

431431
let aOfficial = a.value.startsWith('https://ai-tournaments.github.io/');
432-
let bOfficial = a.value.startsWith('https://ai-tournaments.github.io/');
432+
let bOfficial = b.value.startsWith('https://ai-tournaments.github.io/');
433433
if(aOfficial ? !bOfficial : bOfficial){return 1;}
434434

435435
if(parseFloat(a.dataset.stars) < parseFloat(b.dataset.stars)){return -1;}
@@ -452,7 +452,7 @@ function a(){
452452
let url = option.value;
453453
const session = GitHubApi.getSessionStorage();
454454
if(!url.startsWith('https://ai-tournaments.github.io/') && !session?.externalReplaysAccepted){
455-
session.externalReplaysAccepted = 'i accept external replay viewers' === (prompt('External replays are by default blocked for security reasons. do so at your own risk. Only do this to URLs for code that you trust.\n\nWrite "I accept external replays" to allow external replay viewers.')??'').toLowerCase();
455+
session.externalReplaysAccepted = 'I accept external replay viewers' === (prompt('External replays are by default blocked for security reasons. do so at your own risk. Only do this to URLs for code that you trust.\n\nWrite "I accept external replays" to allow external replay viewers.')??'').toLowerCase();
456456
GitHubApi.setSessionStorage(session);
457457
}
458458
if(url.startsWith('https://ai-tournaments.github.io/') || session?.externalReplaysAccepted){

0 commit comments

Comments
 (0)