diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4a7ea30 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,12 @@ +root = true + +[*] +indent_style = space +indent_size = 2 +end_of_line = lf +charset = utf-8 +trim_trailing_whitespace = true +insert_final_newline = true + +[*.md] +trim_trailing_whitespace = false diff --git a/lib/index.hbs b/lib/index.hbs index 2332ddc..204f1ee 100644 --- a/lib/index.hbs +++ b/lib/index.hbs @@ -95,7 +95,7 @@ window.onload = function() { const ui = SwaggerUIBundle(options) {{#if oauthOptions}} if (ui.hasOwnProperty("initOAuth")) { - ui.initOAuth({{{json oauthOptions}}}) + ui.initOAuth({{{json oauthOptions}}}) } {{/if}} window.ui = ui