]> source.dussan.org Git - vaadin-framework.git/commitdiff
Support new gwt.codesvr parameter (#3810)
authorArtur Signell <artur.signell@itmill.com>
Mon, 21 Dec 2009 11:49:46 +0000 (11:49 +0000)
committerArtur Signell <artur.signell@itmill.com>
Mon, 21 Dec 2009 11:49:46 +0000 (11:49 +0000)
svn changeset:10479/svn branch:6.3

WebContent/index.html

index f7c4fe9c32b54e1c994084bd8ba74e28d5733202..46bc8846fd602f5cf3324fa094e678f5c8e9105f 100644 (file)
@@ -10,7 +10,7 @@
                <script type="text/javascript">
                window.onload = function() {
                        try {
-                               if(window.location.search && -1 != window.location.search.indexOf('gwt.hosted')) {
+                               if(window.location.search && (window.location.search.indexOf('gwt.hosted') != -1 || window.location.search.indexOf('gwt.codesvr') != -1)) {
                                        var hostedParam = window.location.search;
                                        var demolinks = document.getElementsByTagName("a");
                                        for (var k = 0; k < demolinks.length; k++) {