diff options
-rw-r--r-- | examples/js/googledocs.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/examples/js/googledocs.js b/examples/js/googledocs.js index 92163111..3ebc67c0 100644 --- a/examples/js/googledocs.js +++ b/examples/js/googledocs.js @@ -44,7 +44,9 @@ var id = signals.connect("download", downloadCheck); var reg = new RegExp(".*\.(" + supported.join("|") + ")$", "i"); function downloadCheck(w, d) { - if (reg.test(d.networkRequest.uri)) { + if (w.mainFrame.host === "docs.google.com") + return false; + else if (reg.test(d.networkRequest.uri)) { w.loadUri("http://docs.google.com/viewer?url=" + d.networkRequest.uri); return true; } |