We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1c5279d + a6ee6ad commit a31f8d0Copy full SHA for a31f8d0
static/canjs.js
@@ -194,7 +194,7 @@ function navigate(href) {
194
ga('send', 'pageview', window.location.pathname);
195
196
// set new content
197
- var $content = $(content.match(/<body>(\r|\n|.)+<\/body>/g)[0]);
+ var $content = $(content.match(/<body.*?>[\s\S]+<\/body>/g)[0]);
198
if (!$content.length) {
199
window.location.reload();
200
}
0 commit comments