()
| 3846 | } |
| 3847 | |
| 3848 | function 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 | |
| 3876 | function purgeGlobalReadingPagesConfig() |
| 3877 | { |
no outgoing calls
no test coverage detected