mirror of
https://github.com/Qortal/qortal-mobile.git
synced 2025-04-27 05:17:51 +00:00
fix query
This commit is contained in:
parent
694ace2190
commit
8716113696
@ -26,7 +26,12 @@ export const AppViewer = React.forwardRef(({ app , hide, isDevMode, skipAuth}, i
|
||||
return
|
||||
}
|
||||
|
||||
setUrl(`${getBaseApiReact()}/render/${app?.service}/${app?.name}${app?.path != null ? `/${app?.path}` : ''}?theme=dark&identifier=${(app?.identifier != null && app?.identifier != 'null') ? app?.identifier : ''}`)
|
||||
let hasQueryParam = false
|
||||
if(app?.path && app.path.includes('?')){
|
||||
hasQueryParam = true
|
||||
}
|
||||
|
||||
setUrl(`${getBaseApiReact()}/render/${app?.service}/${app?.name}${app?.path != null ? `/${app?.path}` : ''}${hasQueryParam ? "&": "?" }theme=dark&identifier=${(app?.identifier != null && app?.identifier != 'null') ? app?.identifier : ''}`)
|
||||
}, [app?.service, app?.name, app?.identifier, app?.path, app?.isPreview])
|
||||
|
||||
useEffect(()=> {
|
||||
|
Loading…
x
Reference in New Issue
Block a user