diff --git a/src/index.html b/src/index.html index acf7eb0..8ebc9fb 100644 --- a/src/index.html +++ b/src/index.html @@ -11,8 +11,8 @@ - - + + @@ -23,7 +23,7 @@ font-family: 'fontname'; font-style: normal; font-weight: 400; - src: url(../fontname.ttf) format('truetype'); + src: url(fontname.ttf) format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; } .Codemirror pre { @@ -35,7 +35,7 @@ font-family: 'FiraCode'; font-style: normal; font-weight: 400; - src: url(../FiraCode.ttf) format('truetype'); + src: url(FiraCode.ttf) format('truetype'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000; } .Codemirror pre { diff --git a/src/script.js b/src/script.js index b9295ca..4b9b49b 100644 --- a/src/script.js +++ b/src/script.js @@ -101,6 +101,7 @@ globalConsoleContainerEl, externalLibrarySearchInput, keyboardShortcutsModal }; const AUTO_SAVE_INTERVAL = 15000; // 15 seconds + const BASE_PATH = chrome.extension ? '/' : '/dist/'; var updateTimer, updateDelay = 500, @@ -996,7 +997,7 @@ globalConsoleContainerEl, externalLibrarySearchInput, keyboardShortcutsModal ''; } @@ -1007,7 +1008,7 @@ globalConsoleContainerEl, externalLibrarySearchInput, keyboardShortcutsModal '">'; } - if (js !== undefined) { + if (typeof js === 'string') { contents += '