Try to get JS working
This commit is contained in:
17
SiaDrive/res/code.js
Normal file
17
SiaDrive/res/code.js
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
|
||||
function setAvailableDrives(driveList) {
|
||||
alert(driveList[0]);
|
||||
var sel = document.getElementById("MountDrives");
|
||||
sel.innerHTML = "";
|
||||
|
||||
for (var i in driveList) {
|
||||
if (driveList.hasOwnProperty(i)) {
|
||||
var drive = driveList[i];
|
||||
var option = document.createElement("option");
|
||||
option.innerText = drive + ":";
|
||||
sel.appendChild(option);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user