Browse Source

🐛 Delete trailing slash

Fix #10
master
Clement 1 year ago
parent
commit
a0af8e31a5
  1. 3
      src/scripts/options.js

3
src/scripts/options.js

@ -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");

Loading…
Cancel
Save