Skip to main content
Module

x/oauth4webapi/.electron_flags.sh

OAuth 2 / OpenID Connect for JavaScript Runtimes
Go to Latest
File
echo $(electron -i <<< 'process.exit(0)' 2> /dev/null | grep "Using" | awk '{$1=$1};1' | sed -r "s/\x1B\[([0-9]{1,3}(;[0-9]{1,2};?)?)?[mGK]//g")
electron -i <<< 'process.exit(parseInt(process.versions.node, 10))' &> /dev/nullNODE_VERSION=$?export NODE_OPTIONS='--no-warnings --tls-cipher-list="DHE-RSA-AES128-GCM-SHA256 ECDHE-RSA-AES128-GCM-SHA256 DHE-RSA-AES256-GCM-SHA384 ECDHE-RSA-AES256-GCM-SHA384"'
if [[ $NODE_VERSION -eq 18 ]]; then export NODE_OPTIONS+=' --experimental-global-webcrypto'elif [[ $NODE_VERSION -eq 16 ]]; then export NODE_OPTIONS+=' --experimental-global-webcrypto --experimental-fetch'fi