Explorar o código

Set the selected protocol

simov %!s(int64=8) %!d(string=hai) anos
pai
achega
e1909c6390
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 + '://'
           )