We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6ad4ad9 commit 138e95cCopy full SHA for 138e95c
gwynethllewelyn/postlocalstorage/styles/all/template/postlocalstorage_functions.js
@@ -110,6 +110,15 @@
110
nIntervId = message.setInterval(updateStorage, 10000);
111
}, { once: true }
112
);
113
+ // Same for the subject, I think:
114
+ subject.addEventListener(
115
+ "keyup",
116
+ function() {
117
+ message.addEventListener(unloadEvent, updateStorage);
118
+ nIntervId = message.setInterval(updateStorage, 10000);
119
+ }, { once: true }
120
+ );
121
+
122
// When the form is submitted, delete the localStorage key/value pair.
123
textarea.form.addEventListener("submit", function() {
124
// ... except on Preview. We still want to keep the storage around during preview!
0 commit comments