#3 JS fixes after merge
This commit is contained in:
parent
d58b651a8f
commit
d14040ceb6
|
@ -1,9 +1,14 @@
|
||||||
registerScript(node => {
|
import * as core from '../utils/aniwatchCore';
|
||||||
// run the scripts
|
import * as helper from '../utils/helpers';
|
||||||
if (isHtmlElement(node)) {
|
|
||||||
updateLanguageDisplay(node)
|
export function init() {
|
||||||
}
|
core.registerScript(node => {
|
||||||
}, "^/anime/[0-9]*$");
|
// run the scripts
|
||||||
|
if (helper.isHtmlElement(node)) {
|
||||||
|
updateLanguageDisplay(node)
|
||||||
|
}
|
||||||
|
}, "^/anime/[0-9]*$");
|
||||||
|
}
|
||||||
|
|
||||||
function updateLanguageDisplay(node) {
|
function updateLanguageDisplay(node) {
|
||||||
const langPrefix = 'ep.lang.';
|
const langPrefix = 'ep.lang.';
|
||||||
|
|
|
@ -4,6 +4,7 @@ import { initCore } from './utils/aniwatchCore';
|
||||||
import { initHelpers } from './utils/helpers';
|
import { initHelpers } from './utils/helpers';
|
||||||
// enhancements
|
// enhancements
|
||||||
import { init as animeRequests } from './enhancements/animeRequests';
|
import { init as animeRequests } from './enhancements/animeRequests';
|
||||||
|
import { init as languageDisplay } from './enhancements/languageDisplay';
|
||||||
import { init as lists } from './enhancements/lists';
|
import { init as lists } from './enhancements/lists';
|
||||||
import { init as quickSearch } from './enhancements/quickSearch';
|
import { init as quickSearch } from './enhancements/quickSearch';
|
||||||
|
|
||||||
|
@ -15,5 +16,6 @@ initHelpers();
|
||||||
|
|
||||||
// enhancements
|
// enhancements
|
||||||
animeRequests();
|
animeRequests();
|
||||||
|
languageDisplay();
|
||||||
lists();
|
lists();
|
||||||
quickSearch();
|
quickSearch();
|
Loading…
Reference in a new issue