summaryrefslogtreecommitdiffstats
path: root/client
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2013-06-18 21:22:09 +0300
committerArtur Signell <artur@vaadin.com>2013-06-18 21:41:57 +0300
commit3affc37a8ed778d47204c81a428ea56e6c2ac49c (patch)
treea848c8e882a24fe5d7028e2883d606e77ab273cb /client
parentb637ab5945ef0340ce33dda7703e67181c879e4c (diff)
downloadvaadin-framework-3affc37a8ed778d47204c81a428ea56e6c2ac49c.tar.gz
vaadin-framework-3affc37a8ed778d47204c81a428ea56e6c2ac49c.zip
Enable using @Stylesheet with vaadin:// (#9934)
Change-Id: I895fad31ef5b31a395cea95e64d6b183d718056f
Diffstat (limited to 'client')
-rw-r--r--client/src/com/vaadin/client/ApplicationConnection.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/client/src/com/vaadin/client/ApplicationConnection.java b/client/src/com/vaadin/client/ApplicationConnection.java
index d873cc8dc6..236417f23b 100644
--- a/client/src/com/vaadin/client/ApplicationConnection.java
+++ b/client/src/com/vaadin/client/ApplicationConnection.java
@@ -2940,6 +2940,14 @@ public class ApplicationConnection {
uidlUri = serviceUrl + relativeUrl;
}
}
+ if (uidlUri.startsWith(ApplicationConstants.VAADIN_PROTOCOL_PREFIX)) {
+ final String vaadinUri = configuration.getVaadinDirUrl();
+ String relativeUrl = uidlUri
+ .substring(ApplicationConstants.VAADIN_PROTOCOL_PREFIX
+ .length());
+ uidlUri = vaadinUri + relativeUrl;
+ }
+
return uidlUri;
}