@descope/sdk-mixins
Version:
Descope JavaScript SDK mixins
15 lines (11 loc) • 413 B
JavaScript
;
var constants = require('./constants.js');
const createNotificationEle = (config = {}) => {
const notification = document.createElement(constants.NOTIFICATION_ELE_TAG);
Object.keys(config).forEach((key) => {
notification.setAttribute(key, config[key]);
});
return notification;
};
exports.createNotificationEle = createNotificationEle;
//# sourceMappingURL=helpers.js.map