/// <summary>
 /// Allows web applications to explicitly get default scroll restoration behavior on history navigation. This property can be either auto or manual.
 /// </summary>
 /// <param name="scrollRestorationType"></param>
 /// <returns></returns>
 public async ValueTask <ScrollRestorationType> ScrollRestoration()
 {
     return(ScrollRestorationType.FromString(await JsRuntime.InvokeAsync <string>("eval", $"window.history.scrollRestoration")));
 }
 /// <summary>
 /// Allows web applications to explicitly set default scroll restoration behavior on history navigation. This property can be either auto or manual.
 /// </summary>
 /// <param name="scrollRestorationType"></param>
 /// <returns></returns>
 public ValueTask ScrollRestoration(ScrollRestorationType scrollRestorationType)
 {
     return(JsRuntime.InvokeVoidAsync("eval", $"window.history.scrollRestoration = '{scrollRestorationType}'"));
 }