diff --git a/js/nostrtium-settings.js b/js/nostrtium-settings.js index b2bc461..aae3b8d 100644 --- a/js/nostrtium-settings.js +++ b/js/nostrtium-settings.js @@ -104,7 +104,10 @@ $("#new-relay-url").on("input", function () { var url = $(this).val(); - if (url.length > 6 && url.substring(0, 6) == "wss://") { + if ( + url.length > 6 && + (url.substring(0, 6) == "wss://" || url.substring(0, 5) == "ws://") + ) { $("#add-relay").removeClass("disabled"); } }); diff --git a/nostrtium.php b/nostrtium.php index 1118b9d..aa853b4 100644 --- a/nostrtium.php +++ b/nostrtium.php @@ -8,7 +8,7 @@ * Author URI: https://github.com/pjv * Text Domain: nostrtium * Domain Path: /languages - * Version: 0.7.2 + * Version: 0.7.3-beta.1 * Requires at least 6.0 * Requires PHP 8.1 * License Unlicense @@ -21,7 +21,7 @@ exit; } -define('PJV_NOSTRTIUM_VERSION', '0.7.2'); +define('PJV_NOSTRTIUM_VERSION', '0.7.3-beta.1'); define('PJV_NOSTRTIUM_DIR', plugin_dir_path(__FILE__)); define('PJV_NOSTRTIUM_DEFAULT_USER_ROLE', 'edit_posts'); define('PJV_NOSTRTIUM_STORAGE', wp_upload_dir()['basedir'] . '/nostrtium_' . md5(LOGGED_IN_SALT) . '/');