-
-
Notifications
You must be signed in to change notification settings - Fork 130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
скрипт msnotify.class.js не поддерживает сайты без base директивы #896
Comments
разрешите редактирование скриптов без форка, а то изменения не внести вот код if (this.config.jsPath) {
const script = document.createElement('script')
// script.src = this.config.jsPath
script.src = (document.getElementsByName("base") === true) ? this.config.jsPath : '/'+this.config.jsPath
script.async = true
document.body.appendChild(script)
}
if (this.config.cssPath) {
const styles = document.createElement('link')
// styles.href = this.config.cssPath
styles.href = (document.getElementsByName("base") === true) ? this.config.cssPath : '/'+this.config.cssPath
styles.rel = 'stylesheet'
document.head.appendChild(styles)
}
``` |
без тега base в модх могут возникнуть и другие проблемы, лучше его добавлять |
господа... это прям совсем такое... |
если будет прислан PR, то его с удовольствием протестируют и вольют в новую версию |
А если просто в начале путей |
PR я так понял пример решения?... то в общем я его прислал чуть выше посмотрите |
не очень понял что именно вы хотите...((( |
@rasxod Я про то, что можно задать НО, как выше указали, в MODX без base мало что работает, например, вложенные seo-url ломаются, поэтому в целом странно, что вы обратили внимание на эти пути =) |
это я пробовал - не работает( |
Сообщение об ошибке / Error message
без html base директива не подгружаются скрипты js из msnotify.class.js
without html base directive js scripts from msnotify.class.js are not loaded
Резюме / Summary
нужна проверка на наличие директивы
need to check for the existence of the directive
Испарвление / Evaporation
Environment
Версия miniShop2(4.3.0-pl), версия MODX(2.8.5), включены новые скрипты minishop
The text was updated successfully, but these errors were encountered: