Remove explicit String
casts, not needed in SE 3.3
This commit is contained in:
parent
f72d15098e
commit
7834b4572e
@ -75,9 +75,9 @@ Card.prototype.makeJSON = function makeJSON(card_id, description) {
|
||||
scaleY: 1.0,
|
||||
scaleZ: 1.0,
|
||||
},
|
||||
Nickname: String(this.component.getName()),
|
||||
Nickname: this.component.getName(),
|
||||
CardID: card_id,
|
||||
Description: String(description || ""),
|
||||
Description: description || "",
|
||||
ColorDiffuse: {
|
||||
r: 0.713235259,
|
||||
g: 0.713235259,
|
||||
|
@ -139,8 +139,8 @@ TTSDeck.prototype.makeJSON = function makeJSON(nickname, description) {
|
||||
scaleY: 1.0,
|
||||
scaleZ: 1.0,
|
||||
},
|
||||
Nickname: String(nickname || ""),
|
||||
Description: String(description || ""),
|
||||
Nickname: nickname || "",
|
||||
Description: description || "",
|
||||
ColorDiffuse: {
|
||||
r: 0.713239133,
|
||||
g: 0.713239133,
|
||||
@ -154,8 +154,8 @@ TTSDeck.prototype.makeJSON = function makeJSON(nickname, description) {
|
||||
.reduce((acc, val) => acc.concat(val), []),
|
||||
CustomDeck: this.pages.reduce((acc, page, index) => {
|
||||
acc[String(index + 1)] = {
|
||||
FaceURL: String(page.face_url),
|
||||
BackURL: String(page.back_url),
|
||||
FaceURL: page.face_url,
|
||||
BackURL: page.back_url,
|
||||
NumWidth: page.columns,
|
||||
NumHeight: page.rows,
|
||||
BackIsHidden: true,
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
exports.makeSavedObjectJSON = function makeSavedObjectJSON(objects, save_name) {
|
||||
return {
|
||||
SaveName: String(save_name || ""),
|
||||
SaveName: save_name || "",
|
||||
GameMode: "",
|
||||
Date: "",
|
||||
Table: "",
|
||||
|
Loading…
Reference in New Issue
Block a user