Skip to content

Commit

Permalink
fix possible error with undef variable
Browse files Browse the repository at this point in the history
  • Loading branch information
olegnax committed Sep 3, 2023
1 parent ac365a7 commit edc11ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion view/frontend/requirejs-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ var config = {
'owl.carousel': {deps: ['jquery', 'jquery-ui-modules/widget']}
}
};
if(OX_OWL_DISABLE){
if(window?.OX_OWL_DISABLE){
delete config.paths['owl.carousel'];
delete config.paths['OXowlCarousel'];
delete config.shim['owl.carousel'];
Expand Down

0 comments on commit edc11ea

Please sign in to comment.