Skip to main content

Mountain/IPC/WindServiceHandlers/Navigation/
HistoryGoForward.rs

1#![allow(non_snake_case)]
2
3//! Pop the next URI off the forward-stack and return it.
4//! Mirrors `HistoryGoBack`.
5
6use std::sync::Arc;
7
8use serde_json::Value;
9
10use crate::RunTime::ApplicationRunTime::ApplicationRunTime;
11
12pub async fn HistoryGoForward(RunTime:Arc<ApplicationRunTime>) -> Result<Value, String> {
13	let Uri = RunTime.Environment.ApplicationState.Feature.NavigationHistory.GoForward();
14	Ok(Uri.map(Value::String).unwrap_or(Value::Null))
15}