diff --git a/js/utils.js b/js/utils.js index 6b034ef..a15d5a4 100644 --- a/js/utils.js +++ b/js/utils.js @@ -78,21 +78,21 @@ export class Quality { */ static buildGUI = (defaultValue) => { const res = { - Low: false, - Medium: false, Ultra: false, + Medium: false, + Low: false, }; // Update the default value to true switch (defaultValue) { - case this.low: - res.Low = true; + case this.ultra: + res.Ultra = true; break; case this.medium: res.Medium = true; break; - case this.ultra: - res.Ultra = true; + case this.low: + res.Low = true; break; } @@ -117,14 +117,14 @@ export class Quality { // Update the quality switch (quality) { - case "Low": - fnQuality(this.low); + case "Ultra": + fnQuality(this.ultra); break; case "Medium": fnQuality(this.medium); break; - case "Ultra": - fnQuality(this.ultra); + case "Low": + fnQuality(this.low); break; } };