mirror of
https://github.com/liamcottle/reticulum-meshchat.git
synced 2026-04-28 09:43:13 +00:00
parse and send page data when loading nomadnet pages
This commit is contained in:
parent
a101ff2de9
commit
846228b2b5
2 changed files with 37 additions and 7 deletions
|
|
@ -319,9 +319,13 @@ export default {
|
|||
return;
|
||||
}
|
||||
|
||||
// check if page url ends with .mu but remove page data first
|
||||
// address:/page/index.mu`Data=123
|
||||
const [ pagePathWithoutData, pageData ] = pagePath.split("`");
|
||||
|
||||
// convert micron to html if page ends with .mu extension
|
||||
// otherwise, we will just serve the content as is
|
||||
if(pagePath.endsWith(".mu")){
|
||||
if(pagePathWithoutData.endsWith(".mu")){
|
||||
this.nodePageContent = MicronParser.convertMicronToHtml(pageContent);
|
||||
} else {
|
||||
this.nodePageContent = pageContent;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue