MCPcopy Index your code
hub / github.com/ollm/OpenComic / getLabelConfigKey

Function getLabelConfigKey

scripts/reading.js:3848–3874  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3846}
3847
3848function getLabelConfigKey()
3849{
3850 const labels = dom.labels.has(dom.history.path, true);
3851
3852 if(labels.length)
3853 {
3854 const readingShortcutPagesConfig = storage.get('readingShortcutPagesConfig');
3855
3856 toBreak:
3857 for(let index in readingShortcutPagesConfig)
3858 {
3859 const shortcutConfig = readingShortcutPagesConfig[index];
3860
3861 for(let i = 0, len = shortcutConfig.labels.length; i < len; i++)
3862 {
3863 const label = shortcutConfig.labels[i];
3864
3865 if(labels.includes(label))
3866 {
3867 return shortcutConfig.key;
3868 }
3869 }
3870 }
3871 }
3872
3873 return 0;
3874}
3875
3876function purgeGlobalReadingPagesConfig()
3877{

Callers 3

loadReadingConfigFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected