diff --git a/tarteaucitron.js b/tarteaucitron.js index d590e902..dc8c6f7e 100644 --- a/tarteaucitron.js +++ b/tarteaucitron.js @@ -1908,7 +1908,9 @@ var tarteaucitron = { } } else { script = document.createElement('script'); - script.id = (id !== undefined) ? id : ''; + if (id !== undefined) { + script.id = id; + } script.async = true; script.src = url;