refactor(options): Set the option name to a constant.

This commit is contained in:
LamGC 2023-06-05 17:42:01 +08:00
parent 988f5d5c60
commit 8a6a1de432
Signed by: LamGC
GPG Key ID: 6C5AE2A913941E1D

View File

@ -14,8 +14,10 @@ const PLUGIN_VERSION = "0.1.0";
const ASCIIPLAYER_TAG = "asciiplayer";
const AP_OPTION_USE_LOCAL_RESOURCES = "ap_use_local_resources";
// 是否使用本地资源, 如果可以的话, 建议使用 CDN.
add_option("ap_use_local_resources", false);
add_option(AP_OPTION_USE_LOCAL_RESOURCES, false);
function handle_asciiplayer_code($attr = [], string $content = null): string
{