web: Only accept sol files in save manager

This commit is contained in:
Daniel Jacobs 2023-03-15 09:35:25 -04:00 committed by Nathan Adams
parent 320edd3c0f
commit ef3220e77d
1 changed files with 1 additions and 0 deletions

View File

@ -967,6 +967,7 @@ export class RufflePlayer extends HTMLElement {
document.createElement("INPUT")
);
replaceInput.type = "file";
replaceInput.accept = ".sol";
replaceInput.className = "replace-save";
replaceInput.id = "replace-save-" + key;
const replaceLabel = <HTMLLabelElement>(