2 lines
772 B
JavaScript
2 lines
772 B
JavaScript
import{S as t,i as n,s as o,z as e}from"../chunks/vendor-de807e42.js";import{r as s,b as c}from"../chunks/paths-7dc55c62.js";const i=async function(t,n){return s.goto(t,n,[])};function a(t){var n=this&&this.__awaiter||function(t,n,o,e){return new(o||(o=Promise))((function(s,c){function i(t){try{r(e.next(t))}catch(n){c(n)}}function a(t){try{r(e.throw(t))}catch(n){c(n)}}function r(t){var n;t.done?s(t.value):(n=t.value,n instanceof o?n:new o((function(t){t(n)}))).then(i,a)}r((e=e.apply(t,n||[])).next())}))};return e((()=>n(void 0,void 0,void 0,(function*(){const t=window.location.hash.split("/");let n="edit";t.length>2&&(n=`${t[1]}#${t[2]}`),yield i(`${c}/${n}`,{replaceState:!0})})))),[]}export default class extends t{constructor(t){super(),n(this,t,a,null,o,{})}}
|