From 3f520e13f339f7943bb3c0a272339d20bb31ea29 Mon Sep 17 00:00:00 2001 From: Nariman Jelveh Date: Sat, 17 Aug 2024 12:29:32 -0700 Subject: [PATCH] remove cover iframe for public folders --- src/gui/src/UI/UIWindow.js | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/src/gui/src/UI/UIWindow.js b/src/gui/src/UI/UIWindow.js index 9e2d4dec..2889b955 100644 --- a/src/gui/src/UI/UIWindow.js +++ b/src/gui/src/UI/UIWindow.js @@ -344,31 +344,6 @@ async function UIWindow(options) { // Detail layout header h += window.explore_table_headers(); - // Maybe render iframe for users public directory - (() => { - if ( options.is_saveFileDialog || options.is_openFileDialog || options.is_directoryPicker ) { - return false; - } - - if ( ! options.path || ! options.path.startsWith('/') ) { // sus - return false; - } - - const components = options.path.slice(1).split('/'); - - if ( components.length === 2 && components[1] === 'Public' ) { - const username = components[0]; - h += ` - `; - } - })(); - // Add 'This folder is empty' message by default h += `
This folder is empty
`;