fix deleted text file handling on desktop
This commit is contained in:
parent
2e7c0ac5d0
commit
b3b403a058
3 changed files with 6 additions and 4 deletions
|
@ -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",
|
"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.",
|
"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",
|
"this channel": "this channel",
|
||||||
"Share this channel": "Share this channel"
|
"Share this channel": "Share this channel",
|
||||||
|
"File preview": "File preview"
|
||||||
}
|
}
|
|
@ -17,7 +17,7 @@ export const CAD = 'cad';
|
||||||
export const COMIC = 'comic';
|
export const COMIC = 'comic';
|
||||||
|
|
||||||
// These types can only be render if download completed
|
// 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 AUTO_RENDER_MODES = [IMAGE].concat(TEXT_MODES);
|
||||||
export const WEB_SHAREABLE_MODES = AUTO_RENDER_MODES.concat(FLOATING_MODES);
|
export const WEB_SHAREABLE_MODES = AUTO_RENDER_MODES.concat(FLOATING_MODES);
|
||||||
|
|
|
@ -236,7 +236,7 @@ document.addEventListener('click', event => {
|
||||||
|
|
||||||
function AppWrapper() {
|
function AppWrapper() {
|
||||||
// Splash screen and sdk setup not needed on web
|
// 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);
|
const [persistDone, setPersistDone] = useState(false);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
@ -270,6 +270,7 @@ function AppWrapper() {
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (readyToLaunch && persistDone) {
|
if (readyToLaunch && persistDone) {
|
||||||
|
sessionStorage.setItem('startup', true);
|
||||||
app.store.dispatch(doUpdateIsNightAsync());
|
app.store.dispatch(doUpdateIsNightAsync());
|
||||||
app.store.dispatch(doDaemonReady());
|
app.store.dispatch(doDaemonReady());
|
||||||
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
app.store.dispatch(doBlackListedOutpointsSubscribe());
|
||||||
|
|
Loading…
Reference in a new issue