hexo-theme-shokax
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "a hexo theme based on shoka", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -45,3 +45,4 @@ /* global hexo */ | ||
priority: theme.quicklink.priority | ||
} | ||
}, | ||
playerAPI: theme.playerAPI | ||
} | ||
@@ -48,0 +49,0 @@ |
const getDocHeight = () => $dom('main > .inner').offsetHeight; | ||
const $dom = (selector, element = document) => { | ||
if (selector.indexOf('#') === 0) { | ||
return element.getElementById(selector.replace('#', '')); | ||
if (selector[0] === '#') { | ||
return element.getElementById(selector.substring(1)); | ||
} | ||
@@ -6,0 +6,0 @@ return element.querySelector(selector); |
@@ -391,3 +391,3 @@ let NOWPLAYING = null; | ||
else { | ||
fetch('https://api.i-meto.com/meting/api?server=' + meta[0] + '&type=' + meta[1] + '&id=' + meta[2] + '&r=' + Math.random()) | ||
fetch(`${CONFIG.playerAPI}/meting/api?server=` + meta[0] + '&type=' + meta[1] + '&id=' + meta[2] + '&r=' + Math.random()) | ||
.then(function (response) { | ||
@@ -394,0 +394,0 @@ return response.json(); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
513359
5137