Index: pkg/browser/lib/dart.js |
diff --git a/client/dart.js b/pkg/browser/lib/dart.js |
similarity index 94% |
copy from client/dart.js |
copy to pkg/browser/lib/dart.js |
index 1777e22828b2c0745cd35cf093693840c22804d5..bf60f52cc0f53be9a7bf74855d34f0dbfe34d3e7 100644 |
--- a/client/dart.js |
+++ b/pkg/browser/lib/dart.js |
@@ -161,24 +161,11 @@ function ReceivePortSync() { |
var stringified = JSON.stringify(serialize(port)); |
var attrName = 'dart-port:' + name; |
document.documentElement.setAttribute(attrName, stringified); |
- // TODO(vsm): Phase out usage of localStorage and delete the |
- // below. We're leaving it in temporarily for backwards |
- // compatibility. |
- try { |
- window.localStorage[attrName] = stringified; |
- } catch (e) { |
- // Swallow errors (e.g., Chrome apps disallow this access). |
- } |
}; |
window.lookupPort = function(name) { |
var attrName = 'dart-port:' + name; |
var stringified = document.documentElement.getAttribute(attrName); |
- // TODO(vsm): Phase out usage of localStorage. We're leaving it in |
- // temporarily for backwards compatibility. |
- if (!stringified) { |
- stringified = window.localStorage[attrName]; |
- } |
return deserialize(JSON.parse(stringified)); |
}; |