add top separator when iframed

This commit is contained in:
Stewart Allen 2020-06-08 12:01:56 -04:00
commit 83a41109d0
3 changed files with 9 additions and 4 deletions

View file

@ -1780,7 +1780,10 @@
$('mode-cam').onclick = () => { API.mode.set('CAM') };
$('mode-laser').onclick = () => { API.mode.set('LASER') };
// add app name hover info
$('app-info').innerText = KIRI.version;
// show topline separator when iframed
try { if (WIN.self !== WIN.top) $('top-sep').style.display = 'flex' } catch (e) { }
}
// if a language needs to load, the script is injected and loaded