PluginProbe
Extendify / 3.2.2
Extendify v3.2.2
3.2.2 3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 All 128 releases
extendify / src / Agent / lib / reload.js

reload.js in Extendify 3.2.2, at src/Agent/lib/reload.js

14 lines 556 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { flushChatStorage } from '@agent/state/chat';
2 import { useStatusStore } from '@agent/state/status';
3
4 // Components navigate through this so the pending chat save always lands first.
5 export const doReload = async (url) => {
6 const flush = flushChatStorage();
7 // Set before the success message paints; the reloaded page opens on this rail.
8 document.documentElement.classList.add('extendify-agent-reloading');
9 useStatusStore.getState().setLeavingPage(true);
10 await flush;
11 if (url) return window.location.assign(url);
12 window.location.reload();
13 };
14