Fix Purge
Compare changes
Files
4- Jono Wenger authored
+ 43
− 12
@@ -11,6 +11,9 @@ package storage
@@ -26,6 +29,11 @@ const localStorageWasmPrefix = "xxdkWasmStorage/"
@@ -34,11 +42,19 @@ type LocalStorage struct {
@@ -50,7 +66,7 @@ func GetLocalStorage() *LocalStorage {
@@ -72,7 +88,7 @@ func (ls *LocalStorage) GetItem(keyName string) ([]byte, error) {
@@ -84,7 +100,7 @@ func (ls *LocalStorage) SetItem(keyName string, keyValue []byte) {
@@ -101,14 +117,14 @@ func (ls *LocalStorage) Clear() {
@@ -117,14 +133,14 @@ func (ls *LocalStorage) ClearPrefix(prefix string) {
@@ -145,7 +161,21 @@ func (ls *LocalStorage) Key(n int) (string, error) {
@@ -166,3 +196,4 @@ func (ls *LocalStorage) removeItem(keyName string) { ls.v.Call("removeIte