Skip to content

Instantly share code, notes, and snippets.

@talee
Created December 22, 2018 00:03
Show Gist options
  • Select an option

  • Save talee/bf866eb37341435c36ca133cfbd63efc to your computer and use it in GitHub Desktop.

Select an option

Save talee/bf866eb37341435c36ca133cfbd63efc to your computer and use it in GitHub Desktop.
Fix Splunk not wrapping
(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