/******/ (() => { // webpackBootstrap
/******/ 	"use strict";
/******/ 	// The require scope
/******/ 	var __webpack_require__ = {};
/******/ 	
/************************************************************************/
/******/ 	/* webpack/runtime/make namespace object */
/******/ 	(() => {
/******/ 		// define __esModule on exports
/******/ 		__webpack_require__.r = (exports) => {
/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
/******/ 			}
/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
/******/ 		};
/******/ 	})();
/******/ 	
/************************************************************************/
var __webpack_exports__ = {};
/*!**************************************!*\
  !*** ./src/common/injectFunction.ts ***!
  \**************************************/
__webpack_require__.r(__webpack_exports__);
window['addScriptToPage'] = function (script, data) {
    const buttonTeg = document.createElement('button');
    buttonTeg.id = 'autoFillButton';
    buttonTeg.setAttribute('onClick', 'doFillScript()');
    document.body.appendChild(buttonTeg);
    const scriptTeg = document.createElement('script');
    scriptTeg.id = 'autoFillScript';
    scriptTeg.innerHTML = `
        function doFillScript() {

            debugger;

            var data = ${JSON.stringify(data)};

            (${script})(data);
        }`;
    document.body.appendChild(scriptTeg);
};
window['addScriptToPageAndRun'] = function (script, data) {
    window['addScriptToPage'](script, data);
    setTimeout(() => {
        console.log('Let\'s roll!');
        document.querySelector('#autoFillButton').click();
    }, 1000);
};


/******/ })()
;
//# sourceMappingURL=injectFunction.js.map