Run prettier on js/script.js
parent
c70616e5c6
commit
d9013da7e5
16
js/script.js
16
js/script.js
|
@ -1,4 +1,4 @@
|
|||
window.onload = function() {
|
||||
window.onload = function () {
|
||||
const ws = new ReconnectingWebSocket(((window.location.protocol === "https:") ? "wss://" : "ws://") + window.location.host + "/ws");
|
||||
|
||||
const items = document.querySelector("#items");
|
||||
|
@ -24,18 +24,17 @@ window.onload = function() {
|
|||
group: "dndmusicbot-playlists",
|
||||
filter: ".locked",
|
||||
onMove: (e) => {
|
||||
if (e.related)
|
||||
{
|
||||
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)
|
||||
{
|
||||
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('|'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue