Problem/Motivation
Recently discovered one of our sites was flagging a JS error that was coming from this module and breaking the rest of the JS from running. The error being "Uncaught ReferenceError: Drupal is not defined". I noticed in office_hours.libraries.yml that there was no reference to core/drupal?
I'm a little surprised that this hasn't been flagged previously so have created a patch and this seems to resolve the issue. Hope this helps and if you can give me some insight into how this would work without passing drupal.js to the office_hours.js that would be much appreciated!
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-not-defined-3227554-2.patch | 287 bytes | welly |
Comments
Comment #2
welly commentedComment #3
johnvComment #5
johnvHmm, strange.
But other modules have this , too, so committed as-is.
Thanks.