Correct missing quotes on storage removeItem

This commit is contained in:
David Botton 2022-04-14 16:03:37 -04:00
parent 827c6240ae
commit a69fe5a314
3 changed files with 4 additions and 3 deletions

View file

@ -185,7 +185,8 @@
;;;;;;;;;;;;;;;;;
(defgeneric url-replace (clog-window replace-url)
(:documentation "Replace browser url."))
(:documentation "Replace browser url, ie a redirection and current URL not
saved in session history and back button will not return to it."))
(defmethod url-replace ((obj clog-window) replace-url)
(execute obj (format nil "replace('~A')" replace-url)))

View file

@ -531,7 +531,7 @@ STORAGE-TYPE. (local = persistant or session)"))
STORAGE-TYPE. (local = persistant or session)"))
(defmethod storage-remove ((obj clog-window) storage-type key-name)
(execute obj (format nil "~(~a~)Storage.removeItem(~A)" storage-type key-name)))
(execute obj (format nil "~(~a~)Storage.removeItem('~A')" storage-type key-name)))
;;;;;;;;;;;;;;;;;;;;;
;; storage-element ;;

View file

@ -34,7 +34,7 @@
The value of local storage persists in the browser cache even after the browser
is closed. If you reset this page the session storage key will remain the same,
but opening this page in another window or tab will be a new session. If the
new window came from a click from this window, the session keys (on some
new window came from a click from this window, the session keys (on some
browsers are copied first to the new window, if you wish to persist data accross
windows use local storage instead.</p>
<br>