diff --git a/js/hi01379.js b/js/hi01379.js index bfad0aa..f365535 100644 --- a/js/hi01379.js +++ b/js/hi01379.js @@ -28,8 +28,8 @@ Hi01379 = (function(psGopherRequest) { sel = rest.length > 1 ? rest[1] : '' // selector host = rest.length > 2 ? rest[2] : '' // hostname port = rest.length > 3 ? (0|rest[3]) : '' // port - // check for the empty fields - if(!sel) sel = desc // selector defaults to the description + // selector defaults to the description only if there are no other fields + if(!sel && rest.length < 2) sel = desc if(!host) host = chost // host defaults to the current host if(!port) port = cport // port defaults to the current port if(type == 'i') { // information message - wrap them in pretag diff --git a/manifest.webapp b/manifest.webapp index 0ff906b..33bab23 100644 --- a/manifest.webapp +++ b/manifest.webapp @@ -1,5 +1,5 @@ { - "version": "0.0.2", + "version": "0.0.3", "name": "Kopher", "description": "A Gopher client for KaiOS", "launch_path": "/index.html",