Parse string -> bool without eval.
This commit is contained in:
parent
479df01043
commit
fc87763e5d
1 changed files with 2 additions and 1 deletions
|
|
@ -429,7 +429,8 @@ export default {
|
|||
// prettier-ignore
|
||||
{
|
||||
const log = getQuerystringParameter(queryStrings.LOG);
|
||||
if (eval(log) || !preReqResult) {
|
||||
const logAsBool = (log?.toLowerCase() === "true");
|
||||
if (logAsBool || !preReqResult) {
|
||||
console.log("------------- payment-method.vue pagePrereqs start -----------------");
|
||||
console.log(new Date() + " serviceLocationReqs::isMobile: " + isMobile);
|
||||
console.log(new Date() + " serviceLocationReqs::mobileReqs: " + mobileReqs);
|
||||
|
|
|
|||
Loading…
Reference in a new issue