diff --git a/.travis.yml b/.travis.yml index 8e0471f..9d0e4c0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,4 +7,4 @@ before_script: - npm install -g web-ext script: - jshint js/ - - web-ext lint --warnings-as-errors --ignore-files "libs/*" "**/*.sh" \ No newline at end of file + - web-ext lint --warnings-as-errors --ignore-files "libs/*" "docs/" "**/*.sh" \ No newline at end of file diff --git a/js/popup.js b/js/popup.js index 35b97be..dcd40c3 100644 --- a/js/popup.js +++ b/js/popup.js @@ -150,7 +150,7 @@ document.addEventListener('DOMContentLoaded', function() { handleTrackingCode: function() { var piwikURL = encodeURI(popup.el.piwikURL.value); if (!piwikURL.endsWith("/")) { - piwikURL += "/" + piwikURL += "/"; } var siteID = parseInt(popup.el.siteID.value, 10); if (!siteID || !piwikURL) { diff --git a/package.json b/package.json index 8eceeef..4191b16 100644 --- a/package.json +++ b/package.json @@ -10,7 +10,7 @@ "devDependencies": {}, "scripts": { "copy": "bash copy.sh", - "build": "web-ext build --ignore-files '**/*.sh'" + "build": "web-ext build --ignore-files '**/*.sh' 'docs/'" }, "repository": { "type": "git",