File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
- < script >
1
+ <%= javascript_tag nonce: true do % >
2
2
var rootPath = '<%= Avo.configuration.root_path %> ';
3
3
var timezone = '<%= Avo.configuration.timezone %> ';
4
4
var locale = '<%= Avo.configuration.locale %> ';
5
5
var defaultViewType = '<%= Avo.configuration.default_view_type %> ';
6
6
var license = <%= Avo::App.license.properties.to_json.html_safe %> ;
7
7
var avoResources = <%= Avo::App.get_available_resources(current_user).as_json.html_safe %> ;
8
- </ script >
8
+ <% end % >
Original file line number Diff line number Diff line change 1
- < script >
1
+ <%= javascript_tag nonce: true do % >
2
2
I18n.defaultLocale = 'en';
3
3
I18n.locale = "<%= Avo.configuration.language_code %> ";
4
- </ script >
4
+ <% end % >
5
5
<%= javascript_include_tag 'translations', skip_pipeline: true %>
You can’t perform that action at this time.
0 commit comments