rolandtoth/AdminOnSteroids

Javascript error on 3.0.96 and AdminThemeUIKit

lesaff opened this issue · 1 comments

I got this JS error when used with the following

  • PW 3.0.96
  • AdminThemeUIKit
    • Use custom CSS with AdminThemeUIKit (extending the default uikit css from wire module)

screen shot 2018-03-28 at 9 27 52 am

This is how I extend the css (via @import)

/* Extend default UIKit admin theme styling */
@import "/wire/modules/AdminTheme/AdminThemeUikit/uikit/dist/css/uikit.pw.css";

Error message

aos.min.js?ts=1.8.6_2018032806:1 Uncaught DOMException: Failed to execute 'insertRule' on 'CSSStyleSheet': Failed to insert the rule.
    at addCSSRule (http://<obfuscated>/site/modules/AdminOnSteroids/scripts/aos.min.js?ts=1.8.6_2018032806:1:175)
    at HTMLDocument.<anonymous> (http://<obfuscated>/site/modules/AdminOnSteroids/scripts/aos.min.js?ts=1.8.6_2018032806:1:39583)
    at l (http://<obfuscated>/wire/modules/Jquery/JqueryCore/JqueryCore.js?v=1521567849:2:16996)
    at Object.fireWith [as resolveWith] (http://<obfuscated>/wire/modules/Jquery/JqueryCore/JqueryCore.js?v=1521567849:2:17783)
    at Function.ready (http://<obfuscated>/wire/modules/Jquery/JqueryCore/JqueryCore.js?v=1521567849:2:12504)
    at HTMLDocument.A (http://<obfuscated>/wire/modules/Jquery/JqueryCore/JqueryCore.js?v=1521567849:2:9909)
addCSSRule @ aos.min.js?ts=1.8.6_2018032806:1
(anonymous) @ aos.min.js?ts=1.8.6_2018032806:1
l @ JqueryCore.js?v=1521567849:2
fireWith @ JqueryCore.js?v=1521567849:2
ready @ JqueryCore.js?v=1521567849:2
A @ JqueryCore.js?v=1521567849:2```

I couldn't really reproduce but submitted a possible fix, could you check?