node_modules

This commit is contained in:
saeid
2019-07-15 13:07:31 +04:30
parent d3735c6d30
commit ce1a3ebf9c
35713 changed files with 3639219 additions and 1 deletions
+53
View File
@@ -0,0 +1,53 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var immutable_1 = require("immutable");
function handleGhostModeOption(incoming) {
var value = incoming.get('ghostMode');
var trueAll = {
clicks: true,
scroll: true,
forms: {
submit: true,
inputs: true,
toggles: true
}
};
var falseAll = {
clicks: false,
scroll: false,
forms: {
submit: false,
inputs: false,
toggles: false
}
};
if (value === false ||
value === "false") {
return [incoming.set('ghostMode', immutable_1.fromJS(falseAll)), []];
}
if (value === true ||
value === "true") {
return [incoming.set('ghostMode', immutable_1.fromJS(trueAll)), []];
}
if (value.get("forms") === false) {
return [incoming.set('ghostMode', value.withMutations(function (map) {
map.set("forms", immutable_1.fromJS({
submit: false,
inputs: false,
toggles: false
}));
})), []];
}
if (value.get("forms") === true) {
return [incoming.set('ghostMode', value.withMutations(function (map) {
map.set("forms", immutable_1.fromJS({
submit: true,
inputs: true,
toggles: true
}));
})), []];
}
return [incoming, []];
}
exports.handleGhostModeOption = handleGhostModeOption;
//# sourceMappingURL=handleGhostModeOption.js.map