Spaces:
Running
Running
(window["webpackJsonpGUI"] = window["webpackJsonpGUI"] || []).push([["addon-entry-disable-paste-offset"],{ | |
/***/ "./src/addons/addons/disable-paste-offset/_runtime_entry.js": | |
/*!******************************************************************!*\ | |
!*** ./src/addons/addons/disable-paste-offset/_runtime_entry.js ***! | |
\******************************************************************/ | |
/*! exports provided: resources */ | |
/***/ (function(module, __webpack_exports__, __webpack_require__) { | |
; | |
__webpack_require__.r(__webpack_exports__); | |
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resources", function() { return resources; }); | |
/* harmony import */ var _userscript_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./userscript.js */ "./src/addons/addons/disable-paste-offset/userscript.js"); | |
/* generated by pull.js */ | |
const resources = { | |
"userscript.js": _userscript_js__WEBPACK_IMPORTED_MODULE_0__["default"] | |
}; | |
/***/ }), | |
/***/ "./src/addons/addons/disable-paste-offset/userscript.js": | |
/*!**************************************************************!*\ | |
!*** ./src/addons/addons/disable-paste-offset/userscript.js ***! | |
\**************************************************************/ | |
/*! exports provided: default */ | |
/***/ (function(module, __webpack_exports__, __webpack_require__) { | |
; | |
__webpack_require__.r(__webpack_exports__); | |
/* harmony default export */ __webpack_exports__["default"] = (async function (_ref) { | |
let { | |
addon, | |
console | |
} = _ref; | |
addon.tab.redux.initialize(); | |
addon.tab.redux.addEventListener("statechanged", _ref2 => { | |
let { | |
detail | |
} = _ref2; | |
if (addon.self.disabled) return; | |
if (detail.action.type === "scratch-paint/clipboard/SET" || detail.action.type === "scratch-paint/clipboard/INCREMENT_PASTE_OFFSET") { | |
addon.tab.redux.dispatch({ | |
type: "scratch-paint/clipboard/CLEAR_PASTE_OFFSET" | |
}); | |
} | |
}); | |
addon.self.addEventListener("disabled", () => { | |
addon.tab.redux.dispatch({ | |
type: "scratch-paint/clipboard/CLEAR_PASTE_OFFSET" | |
}); | |
addon.tab.redux.dispatch({ | |
type: "scratch-paint/clipboard/INCREMENT_PASTE_OFFSET" | |
}); | |
}); | |
addon.self.addEventListener("reenabled", () => { | |
addon.tab.redux.dispatch({ | |
type: "scratch-paint/clipboard/CLEAR_PASTE_OFFSET" | |
}); | |
}); | |
if (addon.self.enabledLate) { | |
addon.tab.redux.dispatch({ | |
type: "scratch-paint/clipboard/CLEAR_PASTE_OFFSET" | |
}); | |
} | |
}); | |
/***/ }) | |
}]); | |
//# sourceMappingURL=addon-entry-disable-paste-offset.js.map |