File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " bundleviewer.octoprint.org" ,
3- "version" : " 1.5.1 " ,
3+ "version" : " 1.5.2 " ,
44 "private" : true ,
55 "dependencies" : {
66 "@emotion/react" : " ^11.5.0" ,
Original file line number Diff line number Diff line change @@ -91,12 +91,13 @@ const useStyles = makeStyles((theme) => ({
9191} ) ) ;
9292
9393function corsRewrite ( url ) {
94- const githubRegex = / ^ h t t p s : \/ \/ g i t h u b \. c o m \/ [ a - z A - Z 0 - 9 _ - ] + \/ [ a - z A - Z 0 - 9 _ - ] + \/ f i l e s \/ / ;
94+ const githubRegex = / ^ h t t p s : \/ \/ g i t h u b \. c o m \/ u s e r - a t t a c h m e n t s \/ f i l e s \/ / ;
9595 const forumRegex = / ^ h t t p s : \/ \/ c o m m u n i t y \. o c t o p r i n t \. o r g \/ u p l o a d s \/ s h o r t - u r l \/ / ;
96+
9697 if ( url . match ( githubRegex ) ) {
9798 return url . replace (
98- "https://github.com" ,
99- "https://bundleviewer.octoprint.org/bundles"
99+ "https://github.com/user-attachments/files " ,
100+ "https://bundleviewer.octoprint.org/bundles/github "
100101 ) ;
101102 } else if ( url . match ( forumRegex ) ) {
102103 return url . replace (
You can’t perform that action at this time.
0 commit comments