diff --git a/src/components/editor.js b/src/components/editor.js index bbb465e..ba81cea 100644 --- a/src/components/editor.js +++ b/src/components/editor.js @@ -391,7 +391,7 @@ class AppEditor extends Tonic { { token: 'annotation', foreground: 'cc6666' }, { token: 'type', foreground: '3DC9B0' }, - { token: 'delimiter', foreground: 'DCDCDC' }, + { token: 'delimiter', foreground: colors.primary }, { token: 'delimiter.html', foreground: '808080' }, { token: 'delimiter.xml', foreground: '808080' }, @@ -510,7 +510,7 @@ class AppEditor extends Tonic { monaco.languages.registerFoldingRangeProvider('ini', { provideFoldingRanges: function (model, context, token) { - const sectionStartRegex = /^\[.*]$/ + const sectionStartRegex = /^\[.*]\s*$/ const foldingRanges = [] let lastSectionStart = -1 diff --git a/src/index.js b/src/index.js index ea9fdb4..e40a881 100644 --- a/src/index.js +++ b/src/index.js @@ -188,7 +188,7 @@ class AppView extends Tonic { margin: preview.margin, // ie '6.0', title: preview.title, titlebarStyle: preview.titlebarStyle, // ie 'hiddenInset' - windowConrolOffsets: preview.windowControlOffsets, // ie '10x26' + windowControlOffsets: preview.windowControlOffsets, // ie '10x26' // backgroundColorDark: 'rgba(46, 46, 46, 0.1)', // backgroundColorLight: 'rgba(255, 255, 255, 0.1)', aspectRatio: preview.aspectRatio, // ie '9:19.5' diff --git a/src/views/home.js b/src/views/home.js index e71c0a5..4eaad3f 100644 --- a/src/views/home.js +++ b/src/views/home.js @@ -172,6 +172,8 @@ class ViewHome extends Tonic { data-event-"copy-public-key" id="profile-public-key" > + + diff --git a/src/worker.js b/src/worker.js index 181a0e0..aa54e4e 100644 --- a/src/worker.js +++ b/src/worker.js @@ -87,7 +87,8 @@ export default async function (req, env, ctx) { const headers = { 'Content-Type': type, - 'Cache-Control': 'no-cache' + 'Cache-Control': 'no-cache', + 'Access-Control-Allow-Origin': '*' } return new Response(html, { status: 200, headers })