mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-14 18:20:30 +08:00
fix
This commit is contained in:
parent
dc5b8c2522
commit
e390914c7e
@ -321,7 +321,7 @@ export function Msd() {
|
|||||||
var __refreshImageSelector = function() {
|
var __refreshImageSelector = function() {
|
||||||
let el = $("msd-image-selector");
|
let el = $("msd-image-selector");
|
||||||
|
|
||||||
if (el.options.length == 0) {
|
if (el.options.length === 0) {
|
||||||
el.options[0] = new Option("< Not selected >", "", false, false);
|
el.options[0] = new Option("< Not selected >", "", false, false);
|
||||||
} else {
|
} else {
|
||||||
el.options.length = 1; // Cleanup
|
el.options.length = 1; // Cleanup
|
||||||
@ -343,7 +343,7 @@ export function Msd() {
|
|||||||
|
|
||||||
let option = new Option(name, name, false, false);
|
let option = new Option(name, name, false, false);
|
||||||
el.options[index] = option;
|
el.options[index] = option;
|
||||||
if (__state.drive.image && __state.drive.image.name == name && __state.drive.image.in_storage) {
|
if (__state.drive.image && __state.drive.image.name === name && __state.drive.image.in_storage) {
|
||||||
select_index = index;
|
select_index = index;
|
||||||
}
|
}
|
||||||
++index;
|
++index;
|
||||||
|
|||||||
@ -56,7 +56,7 @@ export function Session() {
|
|||||||
/************************************************************************/
|
/************************************************************************/
|
||||||
|
|
||||||
var __setAboutInfoMeta = function(state) {
|
var __setAboutInfoMeta = function(state) {
|
||||||
if (state != null) {
|
if (state !== null) {
|
||||||
let text = JSON.stringify(state, undefined, 4).replace(/ /g, " ").replace(/\n/g, "<br>");
|
let text = JSON.stringify(state, undefined, 4).replace(/ /g, " ").replace(/\n/g, "<br>");
|
||||||
$("about-meta").innerHTML = `
|
$("about-meta").innerHTML = `
|
||||||
<span class="code-comment">// The Pi-KVM metadata.<br>
|
<span class="code-comment">// The Pi-KVM metadata.<br>
|
||||||
@ -142,7 +142,7 @@ export function Session() {
|
|||||||
var __formatUname = function(kernel) {
|
var __formatUname = function(kernel) {
|
||||||
let pairs = [];
|
let pairs = [];
|
||||||
for (let field of Object.keys(kernel).sort()) {
|
for (let field of Object.keys(kernel).sort()) {
|
||||||
if (field != "system") {
|
if (field !== "system") {
|
||||||
pairs.push([tools.upperFirst(field), kernel[field]]);
|
pairs.push([tools.upperFirst(field), kernel[field]]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user