Skip to content

Commit 56adab0

Browse files
committed
Revert change.
1 parent a09b0f1 commit 56adab0

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Replay/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,8 +399,7 @@ function a(){
399399
_editor.setMode('view');
400400
IndexedDBOperation.do({operation: 'addReplayToStorage', data: _editor.getText()});
401401
GitHubApi.fetch('search/repositories?q=topic:AI-Tournaments+topic:AI-Tournaments-Replay+topic:'+_replayData.body.arena.full_name.replace('/','--')).then(response => response.json()).then(response => {
402-
const officialUrl = 'https://ai-tournaments.github.io'; // TODO: 👇 Either only allow absolute URL:s or calculate arena origin.
403-
document.getElementById('default-option').value = (_replayData.header.defaultReplay[0]==='/'?officialUrl:'')+_replayData.header.defaultReplay;
402+
document.getElementById('default-option').value = _replayData.header.defaultReplay;
404403
response.items.forEach(repo => {
405404
if(repo.has_pages){
406405
let cssStar = getComputedStyle(document.documentElement).getPropertyValue('--github-stars').trim();

0 commit comments

Comments
 (0)