|
|
@@ -100,7 +100,7 @@ async function Main() {
|
|
|
|
|
|
function isDecryptionEnabled() {
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.decryptionEnabled, null);
|
|
|
- if (!flag) {
|
|
|
+ if (flag == null) {
|
|
|
return true;
|
|
|
}
|
|
|
return JSON.parse(flag);
|
|
|
@@ -116,7 +116,7 @@ function isOrderItemGrabEnabled() {
|
|
|
}
|
|
|
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.orderItemDataGrabEnabled, null);
|
|
|
- if (!flag) {
|
|
|
+ if (flag == null) {
|
|
|
return false;
|
|
|
}
|
|
|
return JSON.parse(flag);
|
|
|
@@ -124,7 +124,7 @@ function isOrderItemGrabEnabled() {
|
|
|
|
|
|
function isCompoundItemGrabEnabled() {
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.compoundItemDataGrabEnabled, null);
|
|
|
- if (!flag) {
|
|
|
+ if (flag == null) {
|
|
|
return false;
|
|
|
}
|
|
|
return JSON.parse(flag);
|
|
|
@@ -132,7 +132,7 @@ function isCompoundItemGrabEnabled() {
|
|
|
|
|
|
function isDrawItemGrabEnabled() {
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.drawItemDataGrabEnabled, null);
|
|
|
- if (!flag) {
|
|
|
+ if (flag == null) {
|
|
|
return false;
|
|
|
}
|
|
|
return JSON.parse(flag);
|
|
|
@@ -140,7 +140,7 @@ function isDrawItemGrabEnabled() {
|
|
|
|
|
|
function isExchangeItemGrabEnabled() {
|
|
|
let flag = magicJS.data.read(HbcpreConstKey.exchangeItemDataGrabEnabled, null);
|
|
|
- if (!flag) {
|
|
|
+ if (flag == null) {
|
|
|
return false;
|
|
|
}
|
|
|
return JSON.parse(flag);
|