Index: client/dom/generated/src/frog/Storage.dart |
diff --git a/client/dom/generated/src/frog/Storage.dart b/client/dom/generated/src/frog/Storage.dart |
index 8491c7a067ebede7134e0810140d1c14e642a348..c1165b76da538b2a0f70258998deed9d6a2a8ccb 100644 |
--- a/client/dom/generated/src/frog/Storage.dart |
+++ b/client/dom/generated/src/frog/Storage.dart |
@@ -13,7 +13,31 @@ class Storage native "*Storage" { |
void setItem(String key, String data) native; |
- var dartObjectLocalStorage; |
+ var get dartObjectLocalStorage() native """ |
+ |
+ if (this === window.localStorage) |
+ return window._dartLocalStorageLocalStorage; |
+ else if (this === window.sessionStorage) |
+ return window._dartSessionStorageLocalStorage; |
+ else |
+ throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for unknown Storage object.'); |
+ |
+""" { |
+ throw new UnsupportedOperationException(''); |
+ } |
+ |
+ void set dartObjectLocalStorage(var value) native """ |
+ |
+ if (this === window.localStorage) |
+ window._dartLocalStorageLocalStorage = value; |
+ else if (this === window.sessionStorage) |
+ window._dartSessionStorageLocalStorage = value; |
+ else |
+ throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for unknown Storage object.'); |
+ |
+""" { |
+ throw new UnsupportedOperationException(''); |
+ } |
String get typeName() native; |
} |