Closed ethanmdavidson closed 5 years ago
kweb_bootstrap defines docCookie with a "getItems" function (with an 's' on the end) https://github.com/kwebio/core/blob/master/src/main/resources/io/kweb/kweb_bootstrap.html#L201
CookieReceiver tries to call docCookie.getItem (without the 's' on the end) https://github.com/kwebio/core/blob/master/src/main/kotlin/io/kweb/dom/cookies/CookieReceiver.kt#L43
doc.cookie.getString("test") throws "Error evaluating docCookies.getItem("test");: TypeError: docCookies.getItem is not a function"
doc.cookie.getString("test")
docCookies.getItem("test");
Ah, good catch - thank you. I've corrected kweb_bootstrap, please reopen if 0.3.12 doesn't fix it.
kweb_bootstrap defines docCookie with a "getItems" function (with an 's' on the end) https://github.com/kwebio/core/blob/master/src/main/resources/io/kweb/kweb_bootstrap.html#L201
CookieReceiver tries to call docCookie.getItem (without the 's' on the end) https://github.com/kwebio/core/blob/master/src/main/kotlin/io/kweb/dom/cookies/CookieReceiver.kt#L43
doc.cookie.getString("test")
throws "Error evaluatingdocCookies.getItem("test");
: TypeError: docCookies.getItem is not a function"