From 1cc6a4e1bdcecba1f5d677d105ee66cdd151c475 Mon Sep 17 00:00:00 2001 From: Folyd Date: Wed, 16 Oct 2024 11:52:51 +0800 Subject: [PATCH] Fix check crate svg icon --- extension/script/docs-rs-check-crate.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/script/docs-rs-check-crate.js b/extension/script/docs-rs-check-crate.js index 191c5a7c..f0486058 100644 --- a/extension/script/docs-rs-check-crate.js +++ b/extension/script/docs-rs-check-crate.js @@ -11,11 +11,11 @@ let svgIcon = document.querySelector(".add-to-extension .fa-svg"); if (svgIcon) { svgIcon.style.color = "#666"; - svgIcon.innerHTML = ''; + svgIcon.className = "fa fa-solid fa-svg fa-ban"; } let content = document.querySelector(".add-to-extension-content"); if (content) { - content.innerHTML = `

This crate version is not supported by Rust Search Extension.

After Rust Search Extension v2.0 has been released, we only support crate builded after 2024-04-20.

`; + content.innerHTML = "

This crate version is not supported by Rust Search Extension.

As of Rust Search Extension v2.0, we only support crates built after 2024-04-20.

"; } console.log("No searchState.descShards found, cannot add this crate to Rust Search Extension."); }