check if the ENABLE_WASM environment variable is set and do not disable

webassembly if it is; this makes zoom.us (evil) work
This commit is contained in:
robert 2020-07-29 14:16:42 +00:00
parent 41b753a668
commit f0bc9618e1
2 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.525 2020/07/29 14:02:14 robert Exp $
# $OpenBSD: Makefile,v 1.526 2020/07/29 14:16:42 robert Exp $
.include <bsd.port.arch.mk>
@ -13,7 +13,7 @@ DPB_PROPERTIES= lonesome
COMMENT= Chromium browser
V= 84.0.4147.105
REVISION= 1
REVISION= 2
DISTNAME= chromium-${V}

View File

@ -1,5 +1,5 @@
#!/bin/sh
# $OpenBSD: chrome,v 1.19 2019/05/11 20:36:47 robert Exp $
# $OpenBSD: chrome,v 1.20 2020/07/29 14:16:42 robert Exp $
DATASIZE="716800"
OPENFILES="400"
@ -54,4 +54,7 @@ export LD_LIBRARY_PATH
[ -f ~/.config/user-dirs.dirs ] || \
echo 'XDG_DOWNLOAD_DIR="$HOME/Downloads"' > ~/.config/user-dirs.dirs
LANG=${_l} exec "${TRUEPREFIX}/chrome/chrome" --disable-features=WebAssembly,AsmJsToWebAssembly,WebAssemblyStreaming --js-flags=--noexpose-wasm "${@}"
[ -z ${ENABLE_WASM} ] && \
_NOWASM="--disable-features=WebAssembly,AsmJsToWebAssembly,WebAssemblyStreaming --js-flags=--noexpose-wasm"
LANG=${_l} exec "/usr/local/chrome/chrome" ${_NOWASM} "${@}"