Fix call to log.warn in asmjs mode

When attempting to run tdweb in asmjs mode, a call to `log.warning` is made. However, the correct call is `log.warn`.
This commit is contained in:
Dylan Staley 2019-07-23 13:41:47 -07:00 committed by Aliaksei Levin
parent b52d31e610
commit 36e98f31a2

View File

@ -147,7 +147,7 @@ async function loadTdlib(mode, onFS, wasmUrl) {
if (mode === 'wasm') {
log.error('WebAssembly is not supported, trying to use it anyway');
} else {
log.warning('WebAssembly is not supported, trying to use asm.js');
log.warn('WebAssembly is not supported, trying to use asm.js');
mode = 'asmjs';
}
}