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
// uncomment if you are transpiling with Babel + Webpack | |
// const { window, document } = global; | |
/** | |
* Lightweight script to detect whether the browser is running in Private mode. | |
* @returns {Promise} | |
* | |
* Live demo: | |
* @see http://live.datatables.net/piduzelo/1 | |
* | |
* This snippet uses ES2015 syntax. If you want to run it in old browsers, transpile it with Babel: |