Author: [EMAIL PROTECTED]
Date: Tue Nov 11 14:56:29 2008
New Revision: 4022

Modified:
    trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js

Log:
Fixes the URL for the hosted.html file when using
the IFrameLinker with noserver hosted mode.

Suggested by: Cameron Braid
Review by: jat


Modified: trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js
==============================================================================
--- trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js      
(original)
+++ trunk/dev/core/src/com/google/gwt/core/linker/IFrameTemplate.js     Tue Nov 
 
11 14:56:29 2008
@@ -295,7 +295,7 @@
          millis:(new Date()).getTime(),
          type: 'moduleRequested'
        });
-      iframe.contentWindow.location.replace(base + strongName  
+ '.cache.html');
+      iframe.contentWindow.location.replace(base + initialHtml);
      }
    }

@@ -351,13 +351,16 @@
    });

    var strongName;
+  var initialHtml;
    if (isHostedMode()) {
-    strongName = "hosted.html?__MODULE_FUNC__";
+    strongName = "";
+    initialHtml = "hosted.html?__MODULE_FUNC__";
    } else {
      try {
  // __PERMUTATIONS_BEGIN__
        // Permutation logic
  // __PERMUTATIONS_END__
+      initialHtml = strongName + ".cache.html";
      } catch (e) {
        // intentionally silent on property failure
        return;

--~--~---------~--~----~------------~-------~--~----~
http://groups.google.com/group/Google-Web-Toolkit-Contributors
-~----------~----~----~----~------~----~------~--~---

Reply via email to