keytops-game-framework 1.0.10 → 1.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +8 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6241,6 +6241,14 @@ class IPayAble {
|
|
|
6241
6241
|
|
|
6242
6242
|
class EnterOptionParser {
|
|
6243
6243
|
constructor(options) {
|
|
6244
|
+
if (typeof options === "string") {
|
|
6245
|
+
try {
|
|
6246
|
+
options = options ? JSON.parse(options) : {};
|
|
6247
|
+
}
|
|
6248
|
+
catch (_a) {
|
|
6249
|
+
options = {};
|
|
6250
|
+
}
|
|
6251
|
+
}
|
|
6244
6252
|
this._options = options || {};
|
|
6245
6253
|
}
|
|
6246
6254
|
/**
|