File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ( ) ;
You can’t perform that action at this time.
0 commit comments