mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2026-11-23 14:26:54 +00:00
Adding quick fix for PPR getting out of sync
This commit is contained in:
1 parent
c47d492ed3
commit
6e0f042b42
3 files changed
+8
-1
No files matched your search
@@ -77,9 +77,13 @@ const BrewRenderer = React.createClass({
|
||||
if(!this.state.isMounted) return false;
|
||||
|
||||
var viewIndex = this.state.viewablePageNumber;
|
||||
if(index == viewIndex - 3) return true;
|
||||
if(index == viewIndex - 2) return true;
|
||||
if(index == viewIndex - 1) return true;
|
||||
if(index == viewIndex) return true;
|
||||
if(index == viewIndex + 1) return true;
|
||||
if(index == viewIndex + 2) return true;
|
||||
if(index == viewIndex + 3) return true;
|
||||
|
||||
//Check for style tages
|
||||
if(pageText.indexOf('<style>') !== -1) return true;
|
||||
|
||||
Reference in new issue
Block a user