Skip to content

Commit 1d5add2

Browse files
committed
make packager work with the current server
1 parent 6f29236 commit 1d5add2

8 files changed

Lines changed: 367 additions & 160 deletions

File tree

package-lock.json

Lines changed: 189 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838
"@turbowarp/sbdl": "^3.0.0",
3939
"cross-fetch": "^4.0.0",
4040
"jszip": "^3.7.1",
41+
"pmp-protobuf": "^1.8.5",
4142
"sha.js": "^2.4.11"
4243
},
4344
"devDependencies": {

src/addons/gamepad/addon.json

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,7 @@
1818
"url": "userscript.js",
1919
"matches": [
2020
"https://scratch.mit.edu/projects/*",
21-
"https://penguinmod.com/#*",
22-
"https://projects.penguinmod.com/api/projects/getPublished?type=file&id=*"
21+
"https://penguinmod.com/#*"
2322
]
2423
}
2524
],
@@ -28,16 +27,14 @@
2827
"url": "style.css",
2928
"matches": [
3029
"https://scratch.mit.edu/projects/*",
31-
"https://penguinmod.com/#*",
32-
"https://projects.penguinmod.com/api/projects/getPublished?type=file&id=*"
30+
"https://penguinmod.com/#*"
3331
]
3432
},
3533
{
3634
"url": "gamepadlib.css",
3735
"matches": [
3836
"https://scratch.mit.edu/projects/*",
39-
"https://penguinmod.com/#*",
40-
"https://projects.penguinmod.com/api/projects/getPublished?type=file&id=*"
37+
"https://penguinmod.com/#*"
4138
]
4239
}
4340
],

src/p4/SelectProject.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,10 @@
155155
task.setProgressText($_('progress.loadingProjectMetadata'));
156156
const metadata = await getProjectMetadata(id);
157157
158-
const token = metadata.token;
159158
projectTitle = metadata.title;
160159
161160
task.setProgressText($_('progress.loadingProjectData'));
162-
const {promise: loadProjectPromise, terminate} = await loadProject.fromID(id, token, progressCallback);
161+
const {promise: loadProjectPromise, terminate} = await loadProject.fromID(id, progressCallback);
163162
task.whenAbort(terminate);
164163
project = await loadProjectPromise;
165164
} else if ($type === 'file') {

0 commit comments

Comments
 (0)