Skip to content

Commit

Permalink
fix #6
Browse files Browse the repository at this point in the history
  • Loading branch information
pjv committed Jun 22, 2023
1 parent 93f8c29 commit 2c3d038
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion js/nostrtium-settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
});
Expand Down
4 changes: 2 additions & 2 deletions nostrtium.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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) . '/');
Expand Down

0 comments on commit 2c3d038

Please sign in to comment.