diff --git a/CHANGELOG b/CHANGELOG index 4b10d7e..e7db019 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,10 @@ +0.5.1 +----- +2024-08-30 + +- Fix clipboard alert message. + + 0.5.0 ----- 2024-08-30 diff --git a/assets/js/front.js b/assets/js/front.js index 69882d7..901e018 100644 --- a/assets/js/front.js +++ b/assets/js/front.js @@ -40,7 +40,7 @@ if (s.permalink && s.permalink.length) { if ('undefined' !== typeof navigator.clipboard) { navigator.clipboard.writeText(s.permalink).then(function () { - alert(opts.textCopiedToClipboard + ' new'); + alert(opts.textCopiedToClipboard); }, function (err) { console.error(opts.textClipboardApiError, err); }); @@ -53,7 +53,7 @@ input.setSelectionRange(0, s.permalink.length); document.execCommand('copy'); input.remove(); - alert(opts.textCopiedToClipboard + ' old'); + alert(opts.textCopiedToClipboard); } } else { console.log(opts.textPermalinkIsEmpty); diff --git a/composer.json b/composer.json index a1ff681..ee5c1f8 100644 --- a/composer.json +++ b/composer.json @@ -55,7 +55,7 @@ "php": "^7.4", "ext-json": "*" }, - "version": "0.5.0", + "version": "0.5.1", "require-dev": { "phpunit/phpunit": "^7" }, diff --git a/index.php b/index.php index b7f3992..bd1a418 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: Naran Social Share * Plugin URI: https://github.com/chwnam/naran-social-share * Description: Share your posts to social media, and so on. - * Version: 0.5.0 + * Version: 0.5.1 * Requires at least: 4.4.0 * Requires PHP: 7.4 * Author: changwoo @@ -23,7 +23,7 @@ require_once __DIR__ . '/vendor/autoload.php'; const NSS_MAIN_FILE = __FILE__; -const NSS_VERSION = '0.5.0'; +const NSS_VERSION = '0.5.1'; const NSS_PRIORITY = 885; nss();