client-ts: Port services/app/app_context

This commit is contained in:
Elian Doran
2024-07-25 20:55:04 +03:00
parent cd5ea28e14
commit b7754bcea0
5 changed files with 48 additions and 21 deletions

View File

@@ -100,10 +100,10 @@ function isCtrlKey(evt: KeyboardEvent) {
|| (isMac() && evt.metaKey);
}
function assertArguments() {
for (const i in arguments) {
if (!arguments[i]) {
console.trace(`Argument idx#${i} should not be falsy: ${arguments[i]}`);
function assertArguments(...args: string[]) {
for (const i in args) {
if (!args[i]) {
console.trace(`Argument idx#${i} should not be falsy: ${args[i]}`);
}
}
}