Skip to content
This repository was archived by the owner on Mar 23, 2025. It is now read-only.

Commit 946017c

Browse files
committed
Fix function redeclaration
1 parent ec5256d commit 946017c

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

public/js/admin.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,6 @@ const capitalize = (str) => {
2222
return str.charAt(0).toUpperCase() + str.slice(1);
2323
};
2424

25-
/**
26-
* Set an alpine.js property
27-
*
28-
* @function setProp
29-
* @param {string} key - Key of the data property
30-
* @param {*} prop - The data property
31-
*/
32-
const setProp = (key, prop) => {
33-
$('#root').get(0).__x.$data[key] = prop;
34-
};
35-
36-
/**
37-
* Get an alpine.js property
38-
*
39-
* @function getProp
40-
* @param {string} key - Key of the data property
41-
* @return {*} The data property
42-
*/
43-
const getProp = (key) => {
44-
return $('#root').get(0).__x.$data[key];
45-
};
46-
4725
/**
4826
* Get the thumbnail generation progress from the API
4927
*

0 commit comments

Comments
 (0)