瀏覽代碼

Set the selected protocol

simov 8 年之前
父節點
當前提交
e1909c6390
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      content/options.js

+ 2 - 1
content/options.js

@@ -138,7 +138,8 @@ m.mount(document.querySelector('main'), {
           },
           state.protocols.map((protocol) =>
           m('option', {
-            value: protocol
+            value: protocol,
+            selected: protocol === state.protocol
             },
             protocol + '://'
           )