Skip to content

Commit 092d596

Browse files
committed
Minor feature improvements
1 parent 689b417 commit 092d596

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

features/follow-on-projects/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default async function ({ feature, console }) {
33
let auth = await feature.auth.fetch();
44
let username = feature.redux.getState().preview.projectInfo.author.username;
55
let data = await (
6-
await fetch(`https://scratch.mit.edu/users/${username}/`)
6+
await fetch(`https://scratch.mit.edu/users/${username}/?ste=${Date.now().toString()}`)
77
).text();
88

99
let html = document.createElement("html");

features/special-editor-fonts.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function addFonts() {
1717
span2.style.fontFamily = font;
1818
span.appendChild(span2);
1919
span.onclick = function () {
20-
ScratchTools.Scratch.scratchPaint().selectedItems[0].setFont(font);
20+
ScratchTools.Scratch.scratchPaint().selectedItems[0]?.setFont(font);
2121
document
2222
.querySelector(
2323
"#react-tabs-3 > div > div.asset-panel_detail-area_2KQhH.box_box_2jjDp > div > div.paint-editor_editor-container-top_2wxS3 > div:nth-child(2) > div.paint-editor_mod-mode-tools_2Ihob.input-group_input-group_plJaJ > div > div > div"

0 commit comments

Comments
 (0)