You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
517 B
25 lines
517 B
1 month ago
|
'use strict';
|
||
|
|
||
|
Object.defineProperty(exports, '__esModule', { value: true });
|
||
|
|
||
|
require('../types.js');
|
||
|
require('../browser.js');
|
||
|
var core = require('@vueuse/core');
|
||
|
var shared = require('@vue/shared');
|
||
|
|
||
|
const getElement = (target) => {
|
||
|
if (!core.isClient || target === "")
|
||
|
return null;
|
||
|
if (shared.isString(target)) {
|
||
|
try {
|
||
|
return document.querySelector(target);
|
||
|
} catch (e) {
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
return target;
|
||
|
};
|
||
|
|
||
|
exports.getElement = getElement;
|
||
|
//# sourceMappingURL=element.js.map
|