micro-app
Version:
(<5kb) [📱iOS] Create Progressive Web App Dynamically.
16 lines (13 loc) • 303 B
JavaScript
import {
doc,
} from './variable.js';
const container = doc.createElement('div');
/**
* Create an element
* @param {String} html html code
* @return {Element} elem result element
*/
export default function ( html ) {
container.innerHTML = html;
return container.firstElementChild;
};