fix deleted text file handling on desktop

This commit is contained in:
Sean Yesmunt 2020-04-30 17:09:50 -04:00
parent 2e7c0ac5d0
commit b3b403a058
3 changed files with 6 additions and 4 deletions

View file

@ -1199,5 +1199,6 @@
"Pause at any time to select a thumbnail from your video": "Pause at any time to select a thumbnail from your video",
"For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 mbps) and resolution (720p) for more reliable streaming.": "For video content, use MP4s in H264/AAC format and a friendly bitrate (under 5 mbps) and resolution (720p) for more reliable streaming.",
"this channel": "this channel",
"Share this channel": "Share this channel"
"Share this channel": "Share this channel",
"File preview": "File preview"
}

View file

@ -17,7 +17,7 @@ export const CAD = 'cad';
export const COMIC = 'comic';
// These types can only be render if download completed
export const NON_STREAM_MODES = [CAD, COMIC];
export const NON_STREAM_MODES = IS_WEB ? [CAD, COMIC] : [CAD, COMIC, ...TEXT_MODES];
export const AUTO_RENDER_MODES = [IMAGE].concat(TEXT_MODES);
export const WEB_SHAREABLE_MODES = AUTO_RENDER_MODES.concat(FLOATING_MODES);

View file

@ -236,7 +236,7 @@ document.addEventListener('click', event => {
function AppWrapper() {
// Splash screen and sdk setup not needed on web
const [readyToLaunch, setReadyToLaunch] = useState(IS_WEB);
const [readyToLaunch, setReadyToLaunch] = useState(IS_WEB || sessionStorage.getItem('startup'));
const [persistDone, setPersistDone] = useState(false);
useEffect(() => {
@ -270,6 +270,7 @@ function AppWrapper() {
useEffect(() => {
if (readyToLaunch && persistDone) {
sessionStorage.setItem('startup', true);
app.store.dispatch(doUpdateIsNightAsync());
app.store.dispatch(doDaemonReady());
app.store.dispatch(doBlackListedOutpointsSubscribe());