diff options
author | Artur Signell <artur@vaadin.com> | 2013-05-23 22:27:16 +0300 |
---|---|---|
committer | Artur Signell <artur@vaadin.com> | 2013-05-23 22:29:58 +0300 |
commit | 6de01ac07153002f3752a0571a0060c21ed37230 (patch) | |
tree | e9d9442d2a2f3c8ce056d9d0efa47bbb1d6e4107 /client | |
parent | 8a42394c6341f26066f41d3560f2419658a67a62 (diff) | |
download | vaadin-framework-6de01ac07153002f3752a0571a0060c21ed37230.tar.gz vaadin-framework-6de01ac07153002f3752a0571a0060c21ed37230.zip |
Fix text / javascript mismatch issue in Chrome (#11275)
Change-Id: I7516be18401640ded3eb6174b5375bb452a2ba00
Diffstat (limited to 'client')
-rw-r--r-- | client/src/com/vaadin/client/ResourceLoader.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/client/src/com/vaadin/client/ResourceLoader.java b/client/src/com/vaadin/client/ResourceLoader.java index 7fc8b4f9f3..3d8eb739b1 100644 --- a/client/src/com/vaadin/client/ResourceLoader.java +++ b/client/src/com/vaadin/client/ResourceLoader.java @@ -323,7 +323,11 @@ public class ResourceLoader { } else { ObjectElement element = Document.get().createObjectElement(); element.setData(url); - element.setType("text/plain"); + if (BrowserInfo.get().isChrome()) { + element.setType("text/cache"); + } else { + element.setType("text/plain"); + } element.setHeight("0px"); element.setWidth("0px"); return element; |