MCPcopy Index your code
hub / github.com/darkreader/darkreader / isStillLoadingError

Function isStillLoadingError

src/inject/dynamic-theme/style-manager.ts:470–472  ·  view source on GitHub ↗
(error: Error)

Source from the content-addressed store, hash-verified

468 // `sheet` property is not null,
469 // but `cssRules` access error is thrown
470 function isStillLoadingError(error: Error) {
471 return error && error.message && error.message.includes('loading');
472 }
473
474 // Seems like Firefox bug: silent exception is produced
475 // without any notice, when accessing <style> CSS rules

Callers 1

getRulesAsyncFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected