Минимизация css, корректировка правил, хеширование файлов, настройки сборок (#6)
This commit is contained in:
@ -56,7 +56,6 @@ class Component {
|
||||
const content = document.querySelector(mainNodeSelector).content;
|
||||
if (content.children.length > 1) {
|
||||
const message = '<template> должен содержать только один элемент children';
|
||||
alert(message);
|
||||
throw new Error(message);
|
||||
}
|
||||
this.mainNode = content.firstElementChild.cloneNode(true);
|
||||
|
||||
Reference in New Issue
Block a user