/viewer# displays a blank page

This commit is contained in:
Veloman Yunkan 2022-08-07 16:27:25 +04:00
parent 228e31cddd
commit 7c6c315ead
1 changed files with 8 additions and 0 deletions

View File

@ -27,10 +27,18 @@
// iframe url: the URL to be loaded in the viewer iframe. // iframe url: the URL to be loaded in the viewer iframe.
function userUrl2IframeUrl(url) { function userUrl2IframeUrl(url) {
if ( url == '' ) {
return '/skin/blank.html';
}
return `/content/${url}`; return `/content/${url}`;
} }
function iframeUrl2UserUrl(url) { function iframeUrl2UserUrl(url) {
if ( url == '/skin/blank.html' ) {
return '';
}
return url.split('/').slice(2).join('/'); return url.split('/').slice(2).join('/');
} }