MCPcopy Index your code
hub / github.com/refined-github/refined-github / initOnce

Function initOnce

source/features/unread-anywhere.tsx:105–109  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

103
104// No signal, created once per load
105function initOnce(): void {
106 registerHotkey('g u', openUnreadNotifications);
107 document.documentElement.classList.add('rgh-unread-anywhere');
108 observe(buttonWithNotificationsSelector + ':not(.rgh-unread-anywhere-wrapper *)', addButton);
109}
110
111void features.add(import.meta.url, {
112 shortcuts: {

Callers

nothing calls this directly

Calls 2

registerHotkeyFunction · 0.85
observeFunction · 0.85

Tested by

no test coverage detected