Browse Source

[filechooser] adding remote_storage_home in filechooser

ayush.goyal 4 years ago
parent
commit
e250e80ad6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      desktop/core/src/desktop/js/jquery/plugins/jquery.filechooser.js

+ 2 - 0
desktop/core/src/desktop/js/jquery/plugins/jquery.filechooser.js

@@ -836,6 +836,8 @@ Plugin.prototype.init = function () {
     }
     if (initialPath != '') {
       self.navigateTo(self.options.initialPath);
+    } else if (window.USER_HOME_DIR != '/') {
+      self.navigateTo(window.USER_HOME_DIR);
     } else if (
       hueLocalStorage(STORAGE_PREFIX + self.options.user + self.options.fsSelected) != null
     ) {