-
-
Save leeahoward/5806169 to your computer and use it in GitHub Desktop.
This file contains 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
//test for use in a chrome extension | |
//via http://withinsharepoint.com/archives/256 | |
function _loadsp() { | |
var interval; | |
function loopCheck() { | |
if (typeof (_spBodyOnLoadWrapper) !== "undefined" && _spBodyOnLoadCalled == false) { | |
console.log('applying sharepoint fix'); | |
_spBodyOnLoadWrapper(); | |
}else{ | |
window.clearInterval(interval); | |
} | |
} | |
// Give SP a chance.. | |
setTimeout(function () { interval = window.setInterval(loopCheck, 30); }, 120); | |
} | |
_loadsp(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment