Skip to content
Permalink
Browse files

Fix unguarded JS check in LeftAndMain.Preview.js

  • Loading branch information...
chillu committed May 6, 2016
1 parent bccd082 commit 0b295137c21da6b0aea58678b07702bb2d03b7d4
@@ -345,7 +345,9 @@
this.setCurrentStateName(null);
}

url += (url.indexOf('?') === -1 ? '?' : '&') + 'CMSPreview=1';
if (url) {
url += (url.indexOf('?') === -1 ? '?' : '&') + 'CMSPreview=1';
}

if (this.is('.column-hidden')) {
this.setPendingURL(url);

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -455,7 +455,9 @@ $.entwine('ss.preview', function($){
}

// Mark url as a preview url so it can get special treatment
url += ((url.indexOf('?') === -1) ? '?' : '&') + 'CMSPreview=1';
if (url) {
url += ((url.indexOf('?') === -1) ? '?' : '&') + 'CMSPreview=1';
}

// If this preview panel isn't visible at the moment, delay loading the URL until it (maybe) is later
if (this.is('.column-hidden')) {

0 comments on commit 0b29513

Please sign in to comment.
You can’t perform that action at this time.