set init settings for languages + fixes

This commit is contained in:
David Meincke
2022-03-27 17:21:16 +02:00
parent 7fce9b48c3
commit 1d90760c33
6 changed files with 37 additions and 47 deletions
@@ -14,8 +14,7 @@ export class CodeEditor extends BaseElement {
this.initWorkers();
this.input = this.setInitInput();
this.language = this.tagName.substring(0, this.tagName.indexOf("-")).toLocaleLowerCase();
console.log(this.language);
this.setInitSettings();
const prefersDarkScheme = window.matchMedia("(prefers-color-scheme: dark)");