import * as util from "./util" ; export const log = util . gebi ( "log" ) ; const curStatus = { } ; export function pushStatus ( id , text ) { if ( id in curStatus && curStatus [ id ] === text ) return ; curStatus [ id ] = text ; updateStatus ( ) ; } export function popStatus ( id ) { if ( ! ( id in curStatus ) ) return ; delete curStatus [ id ] ; updateStatus ( ) ; } function updateStatus ( ) { let txt = "" ; for ( const id in curStatus ) { txt += curStatus [ id ] + "\n" ; } txt = txt . trim ( ) ; if ( txt === "" ) txt = "Recording" ; log . innerText = txt ; util . dispatchEvent ( "ui.resize-needed" ) ; }