@@ -186,7 +186,7 @@ export class Appliaction {
186
186
...this . getScripts ( )
187
187
] ,
188
188
head : customLoading ?. head || [ ] ,
189
- body : `<main >${ customLoading ?. body || '' } </main >` ,
189
+ body : `<div id="__aleph" >${ customLoading ?. body || '' } </div >` ,
190
190
minify : ! this . isDev
191
191
} )
192
192
return html
@@ -1450,7 +1450,7 @@ export class Appliaction {
1450
1450
status : url . pagePath === '' ? 404 : 200 ,
1451
1451
head : [ ] ,
1452
1452
scripts : [ ] ,
1453
- body : '<main ></main >' ,
1453
+ body : '<div id="__aleph" ></div >' ,
1454
1454
data : null ,
1455
1455
}
1456
1456
if ( ret . status === 404 ) {
@@ -1496,7 +1496,7 @@ export class Appliaction {
1496
1496
}
1497
1497
return script
1498
1498
} ) )
1499
- ret . body = `<main >${ body } </main >`
1499
+ ret . body = `<div id="__aleph" >${ body } </div >`
1500
1500
ret . data = data
1501
1501
this . #renderCache. get ( url . pagePath ) ! . set ( key , ret )
1502
1502
if ( this . isDev ) {
@@ -1505,7 +1505,7 @@ export class Appliaction {
1505
1505
} catch ( err ) {
1506
1506
ret . status = 500
1507
1507
ret . head = [ '<title>Error 500 - Aleph.js</title>' ]
1508
- ret . body = `<main ><pre>${ colors . stripColor ( err . stack ) } </pre></main >`
1508
+ ret . body = `<div id="__aleph" ><pre>${ colors . stripColor ( err . stack ) } </pre></div >`
1509
1509
log . error ( err )
1510
1510
}
1511
1511
return ret
@@ -1535,7 +1535,7 @@ export class Appliaction {
1535
1535
1536
1536
/** render custom 404 page. */
1537
1537
private async render404Page ( url : RouterURL = { locale : this . config . defaultLocale , pagePath : '' , pathname : '/' , params : { } , query : new URLSearchParams ( ) } ) {
1538
- const ret : RenderResult = { url, status : 404 , head : [ ] , scripts : [ ] , body : '<main ></main >' , data : null }
1538
+ const ret : RenderResult = { url, status : 404 , head : [ ] , scripts : [ ] , body : '<div id="__aleph" ></div >' , data : null }
1539
1539
try {
1540
1540
const e404Module = Array . from ( this . #modules. keys ( ) )
1541
1541
. filter ( url => url . replace ( reModuleExt , '' ) == '/404' )
@@ -1555,12 +1555,12 @@ export class Appliaction {
1555
1555
}
1556
1556
return script
1557
1557
} ) )
1558
- ret . body = `<main >${ body } </main >`
1558
+ ret . body = `<div id="__aleph" >${ body } </div >`
1559
1559
ret . data = data
1560
1560
} catch ( err ) {
1561
1561
ret . status = 500
1562
1562
ret . head = [ '<title>Error 500 - Aleph.js</title>' ]
1563
- ret . body = `<main ><pre>${ colors . stripColor ( err . stack ) } </pre></main >`
1563
+ ret . body = `<div id="__aleph" ><pre>${ colors . stripColor ( err . stack ) } </pre></div >`
1564
1564
log . error ( err )
1565
1565
}
1566
1566
return ret
@@ -1592,7 +1592,7 @@ export class Appliaction {
1592
1592
)
1593
1593
return {
1594
1594
head,
1595
- body : `<main >${ body } </main >`
1595
+ body : `<div id="__aleph" >${ body } </div >`
1596
1596
} as Pick < RenderResult , 'head' | 'body' >
1597
1597
}
1598
1598
return null
0 commit comments