Run prettier on js/script.js

pull/1/head
Trond Ekseth 2022-11-18 22:26:28 +01:00
parent 6523a9e81f
commit 3f9eebfada
1 changed files with 10 additions and 12 deletions

View File

@ -24,18 +24,17 @@ window.onload = function() {
group: "dndmusicbot-playlists",
filter: ".locked",
onMove: (e) => {
if (e.related)
{
return !e.related.classList.contains('locked');
}
if (e.related) {
return !e.related.classList.contains('locked');
}
},
invertSwap: true,
store: {
get: function(sortable) {
get: function (sortable) {
var order = localStorage.getItem(sortable.options.group.name);
return order ? order.split('|') : [];
},
set: function(sortable) {
set: function (sortable) {
var order = sortable.toArray();
localStorage.setItem(sortable.options.group.name, order.join('|'));
}
@ -46,18 +45,17 @@ window.onload = function() {
group: "dndmusicbot-ambiance",
filter: ".locked",
onMove: (e) => {
if (e.related)
{
return !e.related.classList.contains('locked');
}
if (e.related) {
return !e.related.classList.contains('locked');
}
},
invertSwap: true,
store: {
get: function(sortable) {
get: function (sortable) {
var order = localStorage.getItem(sortable.options.group.name);
return order ? order.split('|') : [];
},
set: function(sortable) {
set: function (sortable) {
var order = sortable.toArray();
localStorage.setItem(sortable.options.group.name, order.join('|'));
}