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,
|
scaleY: 1.0,
|
||||||
scaleZ: 1.0,
|
scaleZ: 1.0,
|
||||||
},
|
},
|
||||||
Nickname: String(this.component.getName()),
|
Nickname: this.component.getName(),
|
||||||
CardID: card_id,
|
CardID: card_id,
|
||||||
Description: String(description || ""),
|
Description: description || "",
|
||||||
ColorDiffuse: {
|
ColorDiffuse: {
|
||||||
r: 0.713235259,
|
r: 0.713235259,
|
||||||
g: 0.713235259,
|
g: 0.713235259,
|
||||||
|
@ -139,8 +139,8 @@ TTSDeck.prototype.makeJSON = function makeJSON(nickname, description) {
|
|||||||
scaleY: 1.0,
|
scaleY: 1.0,
|
||||||
scaleZ: 1.0,
|
scaleZ: 1.0,
|
||||||
},
|
},
|
||||||
Nickname: String(nickname || ""),
|
Nickname: nickname || "",
|
||||||
Description: String(description || ""),
|
Description: description || "",
|
||||||
ColorDiffuse: {
|
ColorDiffuse: {
|
||||||
r: 0.713239133,
|
r: 0.713239133,
|
||||||
g: 0.713239133,
|
g: 0.713239133,
|
||||||
@ -154,8 +154,8 @@ TTSDeck.prototype.makeJSON = function makeJSON(nickname, description) {
|
|||||||
.reduce((acc, val) => acc.concat(val), []),
|
.reduce((acc, val) => acc.concat(val), []),
|
||||||
CustomDeck: this.pages.reduce((acc, page, index) => {
|
CustomDeck: this.pages.reduce((acc, page, index) => {
|
||||||
acc[String(index + 1)] = {
|
acc[String(index + 1)] = {
|
||||||
FaceURL: String(page.face_url),
|
FaceURL: page.face_url,
|
||||||
BackURL: String(page.back_url),
|
BackURL: page.back_url,
|
||||||
NumWidth: page.columns,
|
NumWidth: page.columns,
|
||||||
NumHeight: page.rows,
|
NumHeight: page.rows,
|
||||||
BackIsHidden: true,
|
BackIsHidden: true,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
exports.makeSavedObjectJSON = function makeSavedObjectJSON(objects, save_name) {
|
exports.makeSavedObjectJSON = function makeSavedObjectJSON(objects, save_name) {
|
||||||
return {
|
return {
|
||||||
SaveName: String(save_name || ""),
|
SaveName: save_name || "",
|
||||||
GameMode: "",
|
GameMode: "",
|
||||||
Date: "",
|
Date: "",
|
||||||
Table: "",
|
Table: "",
|
||||||
|
Loading…
Reference in New Issue
Block a user