"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.getWindowConfirmation = function (message, callback) {
    if (!window || !window.confirm || process.env.NODE_ENV === 'test') {
        callback(true);
        return;
    }
    try {
        var isConfirmed = window.confirm(message);
        callback(isConfirmed);
    }
    catch (e) {
        callback(true);
    }
};
//# sourceMappingURL=getWindowConfirmation.js.map