apply added settings in app

This commit is contained in:
2022-11-17 23:01:31 +01:00
parent 5c5bc50731
commit 40fef38017
4 changed files with 20 additions and 6 deletions

View File

@@ -1,8 +1,9 @@
<script>
import { WELCOME_CODE, STORAGE_KEY_CODE } from '../app.config';
import Result from '../components/Result.vue';
import Code from '../components/Code.vue';
import { WELCOME_CODE, STORAGE_KEY_CODE } from '../app.config';
import settingsService from '../services/settingsService';
import Worker from '../file.worker.js?worker';
@@ -54,7 +55,10 @@ export default defineComponent({
this.result += error.message;
};
this.worker.postMessage(code);
this.worker.postMessage({
code,
settings: settingsService.get(),
});
},
terminate() {
if (this.worker) {