feat: render planex in incognito mode
Should hopefully fix the old planning being rendered issue
This commit is contained in:
parent
1a696f0628
commit
aaf72d9122
2 changed files with 3 additions and 0 deletions
|
@ -127,6 +127,7 @@ function PlanexWebview(props: Props) {
|
||||||
onMessage={props.onMessage}
|
onMessage={props.onMessage}
|
||||||
showAdvancedControls={false}
|
showAdvancedControls={false}
|
||||||
showControls={props.currentGroup !== undefined}
|
showControls={props.currentGroup !== undefined}
|
||||||
|
incognito={true}
|
||||||
/>
|
/>
|
||||||
{!props.currentGroup ? (
|
{!props.currentGroup ? (
|
||||||
<ErrorView
|
<ErrorView
|
||||||
|
|
|
@ -58,6 +58,7 @@ type Props = {
|
||||||
customPaddingFunction?: null | ((padding: number) => string);
|
customPaddingFunction?: null | ((padding: number) => string);
|
||||||
showAdvancedControls?: boolean;
|
showAdvancedControls?: boolean;
|
||||||
showControls?: boolean;
|
showControls?: boolean;
|
||||||
|
incognito?: boolean;
|
||||||
};
|
};
|
||||||
|
|
||||||
const AnimatedWebView = Animated.createAnimatedComponent(WebView);
|
const AnimatedWebView = Animated.createAnimatedComponent(WebView);
|
||||||
|
@ -272,6 +273,7 @@ function WebViewScreen(props: Props) {
|
||||||
onLoad={() => injectJavaScript(getJavascriptPadding(containerPaddingTop))}
|
onLoad={() => injectJavaScript(getJavascriptPadding(containerPaddingTop))}
|
||||||
// Animations
|
// Animations
|
||||||
onScroll={onScrollWithListener(onScroll)}
|
onScroll={onScrollWithListener(onScroll)}
|
||||||
|
incognito={props.incognito}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue