File tree Expand file tree Collapse file tree
ios/extention/Resources/scripts
mos/Flean Extension/Resources/scripts Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ let _wikiIndex = null
111111let _wikiIndexPromise = null
112112
113113/** Ensure the in-memory lookup index is built. */
114- async function ensureIndex ( ) {
115- if ( _wikiIndex !== null ) return _wikiIndex
114+ function ensureIndex ( ) {
115+ if ( _wikiIndex !== null ) return Promise . resolve ( _wikiIndex )
116116 if ( _wikiIndexPromise ) return _wikiIndexPromise
117117 _wikiIndexPromise = getWikiData ( ) . then ( data => {
118118 _wikiIndex = buildIndex ( data )
Original file line number Diff line number Diff line change @@ -111,8 +111,8 @@ let _wikiIndex = null
111111let _wikiIndexPromise = null
112112
113113/** Ensure the in-memory lookup index is built. */
114- async function ensureIndex ( ) {
115- if ( _wikiIndex !== null ) return _wikiIndex
114+ function ensureIndex ( ) {
115+ if ( _wikiIndex !== null ) return Promise . resolve ( _wikiIndex )
116116 if ( _wikiIndexPromise ) return _wikiIndexPromise
117117 _wikiIndexPromise = getWikiData ( ) . then ( data => {
118118 _wikiIndex = buildIndex ( data )
You can’t perform that action at this time.
0 commit comments