added js package so that es7 syntax works, moved signaling-server from apps folder to pack folder, removed recurring js errors

This commit is contained in:
Beatrice Olivera
2018-08-31 20:47:33 +01:00
parent 62194ffea4
commit fbde469f45
8 changed files with 61 additions and 86 deletions

View File

@@ -3,9 +3,11 @@ const triggerModalEvent = () => {
const btn = document.getElementById("modalTrigger");
const modal = document.getElementById("myModal");
btn.addEventListener('click', function(event) {
$('#myModal').modal('show');
});
if (btn) {
btn.addEventListener('click', function(event) {
$('#myModal').modal('show');
});
}
}
export { triggerModalEvent }