Skip to content

Commit b1c3cad

Browse files
committed
refactor: fn name
1 parent e2fb3a3 commit b1c3cad

File tree

1 file changed

+2
-2
lines changed
  • website/src/components/GetLatest

1 file changed

+2
-2
lines changed

website/src/components/GetLatest/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function GetLatest() {
1111
useMount(()=>{
1212
if (ExecutionEnvironment.canUseDOM) {
1313
setTimeout(()=>{
14-
setText();
14+
setTagName();
1515
const dom = document.querySelectorAll('.clean-btn')
1616
for(let button of dom) {
1717
if (button?.getAttribute('aria-label') === 'Copy code to clipboard') {
@@ -29,7 +29,7 @@ function GetLatest() {
2929
});
3030
}
3131
});
32-
function setText() {
32+
function setTagName() {
3333
const name = tagName || 'v1.0.22-nightly';
3434
const dom = document.querySelectorAll('.variable');
3535
for (let div of dom){

0 commit comments

Comments
 (0)