Skip to content

Commit f10839d

Browse files
authored
Merge pull request #896 from rgantzos/main
Fix a few things with feature API
2 parents f7a12ee + a287c31 commit f10839d

File tree

4 files changed

+0
-6
lines changed

4 files changed

+0
-6
lines changed

features/default-to-local/script.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
export default function ({ feature, console }) {
22
ScratchTools.waitForElements(".ReactModalPortal", function (modal) {
33
console.log(modal)
4-
window.feature = feature
54
if (!feature.self.enabled) return;
65
console.log("passed enabled")
76
if (modal.querySelector(".sa-swap-local-global-hint")) return;

features/download-project/script.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export default async function ({ feature, console }) {
1212
});
1313
row.appendChild(button)
1414

15-
window.feature = feature;
1615
var saveBlob = (function () {
1716
var a = document.createElement("a");
1817
document.body.appendChild(a);

features/pin-comments/script.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export default async function ({ feature, console }) {
2-
window.feature = feature
3-
42
let pinned = await (await fetch(`https://data.scratchtools.app/pinned/${feature.redux.getState().preview.projectInfo.id}/`)).json()
53
let { username: author } = feature.redux.getState().preview.projectInfo.author
64
let { id } = feature.redux.getState().preview.projectInfo

features/sprite-layers/script.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
export default async function ({ feature, console }) {
2-
window.feature = feature
3-
42
ScratchTools.waitForElements("div[class*='sprite-info_row_']:nth-child(2) > div[class*='sprite-info_group_']:nth-child(1)", function (button) {
53
button.addEventListener("mouseover", function () {
64
if (feature.traps.vm.editingTarget.isStage || button.querySelector(".ste-layers")) return;

0 commit comments

Comments
 (0)