Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: share.html

Issue 10990029: Made share page compatible with IE9 and IE10 (Closed)
Patch Set: Created June 17, 2013, 2:58 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: share.html
===================================================================
--- a/share.html
+++ b/share.html
@@ -123,6 +123,11 @@
width: document.body.offsetWidth,
height: document.body.offsetHeight
};
+
+ // IE doesn't support data other than strings yet
+ if (/MSIE/.test(navigator.appVersion))
+ dimensions = JSON.stringify(dimensions);
+
window.parent.postMessage(dimensions, "*");
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld