Skip to content

Commit b8b5123

Browse files
committed
Added fallback image
Fallback image for when theres no beatmap image Also changed text for graph smoothing setting in settings window tosu
1 parent b11010f commit b8b5123

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

assets/noimage.png

2.45 KB
Loading

index.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -406,3 +406,8 @@ function getDiffColour(rating) {
406406
if (rating >= 9) return '#000000';
407407
return difficultyColourSpectrum(rating);
408408
}
409+
410+
const img = document.getElementById('bg');
411+
img.onerror = function() {
412+
img.src = './assets/noimage.png';
413+
};

settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"uniqueID": "GraphSmoothing",
1919
"type": "number",
2020
"title": "Graph Smoothing",
21-
"description": "Change the smoothing of the strain graph.\nWarning: Any value beyond 4 will look silly.",
21+
"description": "Change the smoothing of the strain graph.⠀⠀\n0 = No smoothing.\n5 = manscaped smooth.",
2222
"value": "3"
2323
},
2424
{

0 commit comments

Comments
 (0)