diff --git a/index.js b/index.js
index 1be285aa5..12391ee6a 100644
--- a/index.js
+++ b/index.js
@@ -413,7 +413,6 @@ return `
function getInstalledApps() {
showLoadingIndicator("myappscontainer");
- showLoadingIndicator("myfscontainer");
// Get apps and files
return Comms.getInstalledApps()
.then(appJSON => {
@@ -421,11 +420,6 @@ function getInstalledApps() {
refreshMyApps();
refreshLibrary();
})
- .then(Comms.listFiles)
- .then(list => {
- files = list;
- refreshMyFS();
- })
.then(() => handleConnectionChange(true));
}
@@ -470,45 +464,6 @@ librarySearchInput.addEventListener('input', evt => {
refreshLibrary();
});
-
-// =========================================== My Files
-
-function refreshMyFS() {
- var panelbody = document.querySelector("#myfscontainer .panel-body");
- var tab = document.querySelector("#tab-myfscontainer a");
- tab.setAttribute("data-badge", files.length);
- panelbody.innerHTML = `
-
-
- | Name |
- Type |
-
-
-
${
- files.map(file =>
- `| ${escapeHtml(file)} | ${fileType(file).name} | `
- ).join("")}
-
`;
-
- htmlToArray(panelbody.getElementsByTagName("tr")).forEach(row => {
- row.addEventListener("click",event => {
- var name = event.target.closest('tr').dataset.name;
- const type = fileType(name);
- Comms.readFile(name).then(content => content.length && saveAs(new Blob([content], type), name));
- });
- });
-}
-
-function fileType(file) {
- switch (file[0]) {
- case "+": return { name: "App descriptor", type: "application/json;charset=utf-8" };
- case "*": return { name: "App icon", type: "text/plain;charset=utf-8" };
- case "-": return { name: "App code", type: "application/javascript;charset=utf-8" };
- case "=": return { name: "Boot-time code", type: "application/javascript;charset=utf-8" };
- default: return { name: "Plain", type: "text/plain;charset=utf-8" };
- }
-}
-
// =========================================== About
document.getElementById("settime").addEventListener("click",event=>{