瀏覽代碼

Do not replace main page with an empty one (#4272)

This PR fixes #4270 by altering the documentation of storage. There was
some new code which replaced the root-route with an empty page.
Rodja Trappe 3 月之前
父節點
當前提交
cbd59a4bfd
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      website/documentation/content/storage_documentation.py

+ 3 - 4
website/documentation/content/storage_documentation.py

@@ -144,10 +144,9 @@ def max_tab_storage_age():
     # app.storage.max_tab_storage_age = timedelta(minutes=1).total_seconds()
     ui.label(f'Tab storage age: {timedelta(minutes=1).total_seconds()} seconds')  # HIDE
 
-    @ui.page('/')
-    def index():
-        # ui.label(f'Tab storage age: {app.storage.max_tab_storage_age} seconds')
-        pass  # HIDE
+    # @ui.page('/')
+    # def index():
+    #    ui.label(f'Tab storage age: {app.storage.max_tab_storage_age} seconds')
 
 
 @doc.demo('Short-term memory', '''