Skip to main content

Mountain/IPC/WindServiceHandlers/Navigation/
HistoryClear.rs

1//! Wipe both the back- and forward-stacks. Issued on workspace
2//! close / reload so a stale URL list doesn't leak into the next
3//! session.
4
5use std::sync::Arc;
6
7use serde_json::Value;
8
9use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
10
11pub async fn Fn(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
12	RunTime.Environment.ApplicationState.Feature.NavigationHistory.Clear();
13
14	Ok(Value::Null)
15}