(href)
| 9454 | } |
| 9455 | |
| 9456 | function checkGuidePage(href) { |
| 9457 | if (guidePage.test(href)) { |
| 9458 | if (typeof _unsafeWindow.JSONEditor !== 'undefined') { |
| 9459 | createEdit(); |
| 9460 | } else { |
| 9461 | let timeout = 30; |
| 9462 | let checkEditorReady = setInterval(() => { |
| 9463 | if (typeof _unsafeWindow.JSONEditor !== 'undefined') { |
| 9464 | createEdit(); |
| 9465 | clearInterval(checkEditorReady); |
| 9466 | } else if (timeout-- <= 0) { |
| 9467 | editor = null; |
| 9468 | customRulesInput.style.display = ""; |
| 9469 | clearInterval(checkEditorReady); |
| 9470 | } |
| 9471 | }, 100); |
| 9472 | } |
| 9473 | return true; |
| 9474 | } |
| 9475 | return false; |
| 9476 | } |
| 9477 | |
| 9478 | function startAutoScroll() { |
| 9479 | clearInterval(autoScrollInterval); |
no test coverage detected