diff --git a/app.js b/app.js index 7a907cb..6343bcc 100644 --- a/app.js +++ b/app.js @@ -1,4 +1,5 @@ const allUsersURI = 'http://acs.amazonaws.com/groups/global/AllUsers' +const codemirrorModeURL = 'https://cdn.jsdelivr.net/npm/codemirror@5.43.0/mode/%N/%N.js' const dateFormat = 'YYYY-MM-DD HH:mm:ss' const defaultCacheControl = 'no-cache' @@ -177,7 +178,7 @@ function init() { // Configure AWS and CodeMirror AWS.config.region = window.past3_config.region - CodeMirror.modeURL = 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.22.2/mode/%N/%N.js' + CodeMirror.modeURL = codemirrorModeURL // Initialize the editor window.editor = CodeMirror.fromTextArea(document.getElementById('editor'), { diff --git a/index.html b/index.html index fc2bada..6e086d3 100644 --- a/index.html +++ b/index.html @@ -7,16 +7,16 @@ PaS(t)3 - S3 file editor {% if config.bootswatch_theme %} - + {% else %} - + {% endif %} - + - - - + - + - + - - - + + + - +