refactor: remove redundant escape html wrappers
This commit is contained in:
@@ -4,9 +4,6 @@ import { escapeHtml, pollBackgroundTask, safeStorage } from "../utils/html_utils
|
||||
const SETTINGS_MAP = [];
|
||||
|
||||
export const optionsMethods = {
|
||||
escapeHtml(value) {
|
||||
return escapeHtml(value);
|
||||
},
|
||||
buildLocalModelContext(item = {}, contextSource = '', extraFields = {}) {
|
||||
const modelLabel = item.relative_path || item.filename || item.model_path || 'Model';
|
||||
const modelPath = item.model_path || '';
|
||||
|
||||
@@ -1,13 +1,9 @@
|
||||
import { getSvgIcon } from "../../utils/icon_utils.js";
|
||||
import { escapeHtml } from "../utils/html_utils.js";
|
||||
import {
|
||||
getCustomNodeModelEntries,
|
||||
getCustomNodeOriginalIdentity,
|
||||
} from "../custom_nodes/registry.js";
|
||||
export const tabsLoadedMethods = {
|
||||
escapeHtml(value) {
|
||||
return escapeHtml(value);
|
||||
},
|
||||
getTabButton(tab) {
|
||||
return {
|
||||
missing: this.missingTab,
|
||||
|
||||
Reference in New Issue
Block a user