deepseek-pc/node_modules/seemly/lib/dom/unwrap-element.js

12 lines
348 B
JavaScript
Raw Normal View History

2025-02-28 19:43:11 +08:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.unwrapElement = void 0;
function unwrapElement(target) {
if (typeof target === 'string')
return document.querySelector(target);
if (typeof target === 'function')
return target();
return target;
}
exports.unwrapElement = unwrapElement;