Skip to content

Commit d9f87ce

Browse files
committed
Move toJSON up
1 parent a685ddd commit d9f87ce

1 file changed

Lines changed: 12 additions & 12 deletions

File tree

src/settings/Settings.ts

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,18 @@ export class Settings extends EventTarget<SettingsEventMap> {
128128

129129
}
130130

131+
toJSON(): Record<string, unknown> {
132+
133+
return {
134+
general: this.general,
135+
input: this.input,
136+
rotation: this.rotation,
137+
translation: this.translation,
138+
dolly: this.dolly
139+
};
140+
141+
}
142+
131143
/**
132144
* Exports these settings as a data blob.
133145
*
@@ -142,16 +154,4 @@ export class Settings extends EventTarget<SettingsEventMap> {
142154

143155
}
144156

145-
toJSON(): Record<string, unknown> {
146-
147-
return {
148-
general: this.general,
149-
input: this.input,
150-
rotation: this.rotation,
151-
translation: this.translation,
152-
dolly: this.dolly
153-
};
154-
155-
}
156-
157157
}

0 commit comments

Comments
 (0)