From dd4146ef761bc864d77f24f2b13343f3a9e55c13 Mon Sep 17 00:00:00 2001 From: nikitosing Date: Tue, 3 May 2022 13:48:04 +0300 Subject: [PATCH] Fix js import --- .../js/view_specific/address_contract/code_highlighting.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/block_scout_web/assets/js/view_specific/address_contract/code_highlighting.js b/apps/block_scout_web/assets/js/view_specific/address_contract/code_highlighting.js index ae57b6144b..ae030c0719 100644 --- a/apps/block_scout_web/assets/js/view_specific/address_contract/code_highlighting.js +++ b/apps/block_scout_web/assets/js/view_specific/address_contract/code_highlighting.js @@ -1,12 +1,14 @@ -import ace from '../../lib/ace/src-min/ace' +import '../../lib/ace/src-min/ace' import '../../lib/ace/src-min/mode-csharp' import '../../lib/ace/src-min/theme-chrome' import $ from 'jquery' +/* eslint-disable-next-line */ const Mode = ace.require('ace/mode/csharp').Mode const codeMain = $('#code_viewer_main') const code = codeMain.text() +/* eslint-disable-next-line */ const editor = ace.edit('code_viewer_main') editor.session.setMode(new Mode()) editor.setTheme('ace/theme/chrome') @@ -17,6 +19,7 @@ const len = codeMain.data('additional-sources-length') for (let i = 0; i < len; i++) { const tag = 'code_viewer_' + i const code = $('#' + tag).text() + /* eslint-disable-next-line */ const editor = ace.edit(tag) editor.session.setMode(new Mode()) editor.setTheme('ace/theme/chrome')