Browse Source

Set the selected protocol

simov 8 years ago
parent
commit
e1909c6390
1 changed files with 2 additions and 1 deletions
  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 + '://'
           )