🐛 Delete trailing slash

Fix #10
This commit is contained in:
Clement 2020-07-21 09:53:32 +02:00
parent 78680fac49
commit a0af8e31a5

View File

@ -19,6 +19,9 @@ storage.get("extract", function(resp) {
});
urlInput.addEventListener("blur", function(e) {
if (this.value.endsWith("/")) {
this.value = this.value.substring(0, this.value.length - 1);
}
var value = this.value;
storage.set({ url: value }, function() {
message.textContent = ext.i18n.getMessage("URLChanged");