Created
December 22, 2018 00:03
-
-
Save talee/bf866eb37341435c36ca133cfbd63efc to your computer and use it in GitHub Desktop.
Fix Splunk not wrapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (function() { | |
| 'use strict'; | |
| function resizeResults() { | |
| var job = setTimeout(() => document.querySelectorAll('.events-results-table').forEach(el => (el.style.width = '100%') && el.offsetParent !== null && (clearTimeout(job) || console.log('Fixed Splunk wrapping'))), 2000); | |
| } | |
| setTimeout(() => document.querySelectorAll('[data-type=events]')[0].addEventListener('click', () => resizeResults()), 1000); | |
| resizeResults(); | |
| window.resizeResults = resizeResults; | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment