Skip to content

Commit

Permalink
🔥 Remove useless default lineWidth for add_moc
Browse files Browse the repository at this point in the history
  • Loading branch information
Xen0Xys committed May 2, 2024
1 parent 40c0823 commit db2167d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions js/models/message_handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ export default class MessageHandler {

handleAddMOCFromURL(msg) {
const options = convertOptionNamesToCamelCase(msg["options"] || {});
if (options["lineWidth"] === undefined) options["lineWidth"] = 3;
this.aladin.addMOC(A.MOCFromURL(msg["moc_URL"], options));
}

handleAddMOCFromDict(msg) {
const options = convertOptionNamesToCamelCase(msg["options"] || {});
if (options["lineWidth"] === undefined) options["lineWidth"] = 3;
this.aladin.addMOC(A.MOCFromJSON(msg["moc_dict"], options));
}

Expand Down

0 comments on commit db2167d

Please sign in to comment.