File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ REACT_APP_LIVE_MONITOR_MAX=100
108108# By default, PV Info treats byte arrays as strings. Change this to false to treat them as byte arrays.
109109# PVWS was updated in 2024 to send "b64byt" instead of using the "text" field for these waveforms of chars
110110# https://github.com/ornl-epics/pvws/pull/23
111- PVWS_TREAT_BYTE_ARRAY_AS_STRING = true
111+ REACT_APP_PVWS_TREAT_BYTE_ARRAY_AS_STRING = true
112112
113113# By default, PV Info does not allow the user to subscribe to waveform PVs. Switch this to true
114114# to allow viewing of waveform PVs. Viewing large waveforms isn't useful in PV Info but
Original file line number Diff line number Diff line change @@ -291,7 +291,7 @@ function parseWebSocketMessage(jsonMessage, fixedPrecision = null) {
291291 pvData . pv_value = Array . prototype . slice . call ( value_array ) ;
292292 } else if ( "b64byt" in pvData ) {
293293 let bytes = toByteArray ( pvData . b64byt ) ;
294- if ( import . meta. env . PVWS_TREAT_BYTE_ARRAY_AS_STRING === "false" ) {
294+ if ( import . meta. env . REACT_APP_PVWS_TREAT_BYTE_ARRAY_AS_STRING === "false" ) {
295295 let value_array = new Uint8Array ( bytes . buffer ) ;
296296 pvData . pv_value = Array . prototype . slice . call ( value_array ) ;
297297 } else {
You can’t perform that action at this time.
0 commit comments