hexo-theme-shokax 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/_config.yml
CHANGED
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
const getDocHeight = () => $dom('main > .inner').offsetHeight;
|
2
2
|
const $dom = (selector, element = document) => {
|
3
|
-
if (selector
|
4
|
-
return element.getElementById(selector.
|
3
|
+
if (selector[0] === '#') {
|
4
|
+
return element.getElementById(selector.substring(1));
|
5
5
|
}
|
6
6
|
return element.querySelector(selector);
|
7
7
|
};
|
package/source/js/_app/player.js
CHANGED
@@ -388,7 +388,7 @@ const mediaPlayer = function (t, config) {
|
|
388
388
|
resolve(list);
|
389
389
|
}
|
390
390
|
else {
|
391
|
-
fetch(
|
391
|
+
fetch(`${CONFIG.playerAPI}/meting/api?server=` + meta[0] + '&type=' + meta[1] + '&id=' + meta[2] + '&r=' + Math.random())
|
392
392
|
.then(function (response) {
|
393
393
|
return response.json();
|
394
394
|
}).then(function (json) {
|