(mutationsList, observer)
| 11 | } |
| 12 | |
| 13 | function mutationObserverCallback(mutationsList, observer) { |
| 14 | var buttons = document.querySelectorAll('button'); |
| 15 | if (buttons.length === 1) { |
| 16 | changeLoginButtonText(buttons); |
| 17 | observer.disconnect(); |
| 18 | } |
| 19 | } |
| 20 | |
| 21 | if (window.location.href.includes('login')) { |
| 22 | const observer = new MutationObserver(mutationObserverCallback); |
nothing calls this directly
no test coverage detected