mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
Make code prettier 💅
This commit is contained in:
parent
c78dcde973
commit
20899654aa
@ -22,7 +22,7 @@ Draft.reopenClass({
|
||||
},
|
||||
|
||||
save(key, sequence, data) {
|
||||
data = typeof(data) === "string" ? data : JSON.stringify(data);
|
||||
data = typeof data === "string" ? data : JSON.stringify(data);
|
||||
return ajax("/draft.json", {
|
||||
type: "POST",
|
||||
data: { draft_key: key, sequence, data }
|
||||
|
Loading…
x
Reference in New Issue
Block a user