Skip to content

Commit 2558cf9

Browse files
authored
Merge pull request #112 from AlgorithmicGames/develop
Merge develop
2 parents 5f686e1 + d1ec4a2 commit 2558cf9

3 files changed

Lines changed: 8 additions & 3 deletions

File tree

Dev/index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
'use strict'
22
function a(){
3+
document.addEventListener('keydown', keyboardEvent => {
4+
if((keyboardEvent.ctrlKey || keyboardEvent.metaKey) && keyboardEvent.key === 's'){ // Prevent the Save dialog to open
5+
keyboardEvent.preventDefault();
6+
}
7+
});
38
let _editor;
49
(()=>{
510
let acceptedDev;

Replay/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ function a(){
405405
let cssStar = getComputedStyle(document.documentElement).getPropertyValue('--github-stars').trim();
406406
cssStar = cssStar.substring(1,cssStar.length-1);
407407
let option = document.createElement('option');
408-
option.innerHTML = repo.full_name.replace(/.*\/|-Arena/g, '') + ' ' + cssStar + repo.stars;
408+
option.innerHTML = repo.full_name.replace(/.*\/Arena-/g, '') + ' ' + cssStar + repo.stars;
409409
option.dataset.stars = repo.stars;
410410
option.value = 'https://'+repo.owner.login+'.github.io/'+repo.name;
411411
if(option.value !== _replayData.header.defaultReplay){

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ function a(){
230230
})
231231
officialRepos.slice(0,amount).forEach(repo => {
232232
let item = document.createElement('div');
233-
item.innerHTML = repo.name.replace('-Arena','')
233+
item.innerHTML = repo.full_name.replace(/.*\/Arena-/g,'')
234234
item.dataset.stars = repo.stars;
235235
item.dataset.full_name = repo.full_name;
236236
item.classList.add('clickable');
@@ -434,7 +434,7 @@ function a(){
434434
function postGitHubProblem(source){
435435
if(!_GitHubProblem){
436436
_GitHubProblem = true;
437-
openWindow('GitHub not reachable!', source+' is currently not reachable, please try again later. In the meantime see if <a href="https://www.githubstatus.com" target="_blank">GitHub Status</a> can help you.', true, '397px');
437+
openWindow('GitHub not reachable!', source+' is currently not reachable, please try again later. In the meantime, please check if <a href="https://www.githubstatus.com" target="_blank">GitHub Status</a> can help you.', true, '397px');
438438
}
439439
}
440440
}

0 commit comments

Comments
 (0)