Skip to content

Commit

Permalink
Refactor action text
Browse files Browse the repository at this point in the history
  • Loading branch information
electrikmilk committed Nov 22, 2023
1 parent b446e55 commit 7ecefe5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ export let actions: ActionDefinitions = {
'setitemname': SetName,
};

export function actionText(text: string): HTMLElement {
const to = document.createElement('div');
to.innerText = text;
to.className = 'sp-action-text';
export function actionText(value: string): HTMLElement {
const text = document.createElement('div');
text.innerText = value;
text.className = 'sp-action-text';

return to;
return text;
}

0 comments on commit 7ecefe5

Please sign in to comment.