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