| (window["webpackJsonpGUI"] = window["webpackJsonpGUI"] || []).push([["addon-entry-disable-paste-offset"],{ |
|
|
| "./src/addons/addons/disable-paste-offset/_runtime_entry.js": |
| |
| |
| |
| |
| (function(module, __webpack_exports__, __webpack_require__) { |
|
|
| "use strict"; |
| __webpack_require__.r(__webpack_exports__); |
| __webpack_require__.d(__webpack_exports__, "resources", function() { return resources; }); |
| var _userscript_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__( "./src/addons/addons/disable-paste-offset/userscript.js"); |
| |
|
|
| const resources = { |
| "userscript.js": _userscript_js__WEBPACK_IMPORTED_MODULE_0__["default"] |
| }; |
|
|
| }), |
|
|
| "./src/addons/addons/disable-paste-offset/userscript.js": |
| |
| |
| |
| |
| (function(module, __webpack_exports__, __webpack_require__) { |
|
|
| "use strict"; |
| __webpack_require__.r(__webpack_exports__); |
| __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" |
| }); |
| } |
| }); |
|
|
| }) |
|
|
| }]); |
| |