Jelajahi Sumber

Fix switching between compilers

simov 8 tahun lalu
induk
melakukan
06003a4ec7
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      content/popup.js

+ 1 - 1
content/popup.js

@@ -27,7 +27,7 @@ var events = {
 
   compiler: {
     name: (e) => {
-      state.compiler = Object.keys(state.compilers)[e.target.selectedIndex]
+      state.compiler = state.compilers[e.target.selectedIndex]
       chrome.runtime.sendMessage({
         message: 'compiler.name',
         compiler: state.compiler