diff --git a/src/3rd/js/plugin/frontend/frontend.js b/src/3rd/js/plugin/frontend/frontend.js index f40bd1d..748940a 100644 --- a/src/3rd/js/plugin/frontend/frontend.js +++ b/src/3rd/js/plugin/frontend/frontend.js @@ -106,7 +106,9 @@ window.frontend = (opts) => new Proxy({ let topic = data.xrf ? data.xrf.string : data.mesh.userData.src - if( topic.length > 20 ) topic = topic.replace(/.*\//,'') + if( topic.match(/\.\.\//) || (topic.length > 20 && AFRAME.utils.device.isMobile() ) ){ + topic = topic.replace(/.*\//,'') + } let html = this.notify_links ? `${data.mesh.isSRC && !data.mesh.portal ? 'src' : 'href'}${ topic }
` : '' let metadata = data.mesh.userData