Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Currently the following code on line 5 of omega.js is throwing up a javascript error:
drupalSettings.omega.currentBreakpoints = {
'All' : true
};
Comment | File | Size | Author |
---|---|---|---|
#5 | omega-currentBreakpoints_undefined-2648808-5.patch | 1.1 KB | ytsurk |
Comments
Comment #2
federicoc CreditAttribution: federicoc as a volunteer and commentedSeeing this on a fresh install of Omega on Drupal 8.1.
Any ideas?
Comment #3
ytsurkgot the same error, as soon as i disable screenDemo ...
Comment #4
ytsurksorry - the last patch did not work ..
Comment #5
ytsurkhmm -- next ;)
Comment #6
ytsurkSo - if the screen demo block is disabled, omega.js produces errors.
Comment #7
himerus CreditAttribution: himerus as a volunteer commentedComment #9
himerus CreditAttribution: himerus as a volunteer commentedThis is fixed in latest dev commit.
Indeed the thought did need to change. The logic in omega.theme needed to occur regardless of if screenDemo was turned on or not. This allows there to be flags during responsive breakpoint changes that can be acted upon by other javascript. So the drupalSettings.omega.currentBreakpoints is always available.
It was the way it was since the only usage of it initially was the demo indicator.
Latest of 8.x-5.x-dev should solve this issue.