File tree Expand file tree Collapse file tree
pages/better-admin-with-mechs Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11< div id =result > working</ div >
22< script type =module >
3- // import * as frame from 'http://code.fed.wiki/assets/v1/frame.js'
4- // const context = await frame.context()
5- const sitemap = await fetch ( '/system/sitemap.json' ) . then ( res => res . json ( ) )
3+ import * as frame from 'http://code.fed.wiki/assets/v1/frame.js'
4+ const context = await frame . context ( )
5+ const origin = context . origin
6+ const sitemap = await fetch ( `${ origin } /system/sitemap.json` ) . then ( res => res . json ( ) )
67 window . result . innerHTML = `
78 <pre></pre>
89 <button>start</button>
2324 async function scan ( todo ) {
2425 return Promise . all (
2526 todo . map ( async info => {
26- await fetch ( `/${ info . slug } .json` )
27+ await fetch ( `${ origin } /${ info . slug } .json` )
2728 . then ( res => res . json ( ) )
2829 . then ( page => check ( info , page ) )
2930 } )
You can’t perform that action at this time.
0 commit comments