mirror of
https://github.com/Kenshin/simpread.git
synced 2026-02-01 15:41:29 +00:00
Optimize focus mode flow.
This commit is contained in:
parent
757ffab910
commit
de76ccaaef
@ -55,8 +55,10 @@ function focuseMode() {
|
||||
|
||||
var $focus = [],
|
||||
sel, range, node, tag,
|
||||
current = storage.Setcur( mode.focus ),
|
||||
target = selector( current.site.include );
|
||||
target;
|
||||
|
||||
if ( storage.current && $.isEmptyObject( storage.current ) ) storage.Setcur( mode.focus );
|
||||
target = selector( storage.current.site.include );
|
||||
|
||||
// uniqueness verification
|
||||
if ( !focus.Verify() ) return;
|
||||
@ -89,7 +91,7 @@ function focuseMode() {
|
||||
|
||||
|
||||
// add focus mode
|
||||
focus.Render( fixFocus( $focus ), current.site.exclude, current.bgcolor );
|
||||
focus.Render( fixFocus( $focus ), storage.current.site.exclude, storage.current.bgcolor );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user