Skip to content

Commit 5b8d439

Browse files
Nicholas KyriakidesNicholas Kyriakides
authored andcommitted
decodeURI before trimming spaces in multiple srcs
1 parent fde0414 commit 5b8d439

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "defer-script",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"description": "Defer scripts that survive vulcanisation/bundling",
55
"main": "defer-script.html",
66
"dependencies": {

defer-script.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
},
7979

8080
_splitSrcString: function(src) {
81-
return src.split(',').map(src => src.trim())
81+
return src.split(',').map(src => decodeURI(src)).map(src => src.trim())
8282
}
8383
});
8484
</script>

0 commit comments

Comments
 (0)