Skip to content

Commit

Permalink
[master] Deploy 7765bbd83fba360b516835eb8833a8c331caccf8
Browse files Browse the repository at this point in the history
  • Loading branch information
forkphorus deploy bot authored and GarboMuffin committed Aug 29, 2023
1 parent 4033844 commit 014720f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 20 deletions.
6 changes: 4 additions & 2 deletions common.js
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ var Common = (function() {
setPlayerFlag('cloudHost', value);
break;
case 'phost':
if (value === 'legacy') value = 'https://projects.scratch.mit.edu/internalapi/project/$id/get/';
setPlayerFlag('projectHost', value);
// Legacy mode was removed by Scratch. We will just ignore it.
if (value !== 'legacy') {
setPlayerFlag('projectHost', value);
}
break;
case 'chhost':
setPlayerFlag('cloudHistoryHost', value);
Expand Down
12 changes: 3 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Forkphorus is a JavaScript compiler for Scratch 3, 2, and 1 projects.">
<link rel="canonical" href="https://forkphorus.github.io/" />
<title>forkphorus - phosphorus for Scratch 3</title><meta name="google-site-verification" content="Re7zb-nm555twSGK216lVPDW-7v7ob1vQHYGQT3fBhE" /><meta name="monetization" content="$ilp.uphold.com/gF2KGUfLzqAR">
<title>forkphorus - phosphorus for Scratch 3</title>
<script>
// Apply local dark mode preference very early to avoid a flash of white
(function() {
Expand All @@ -22,7 +22,7 @@
<link rel="stylesheet" href="phosphorus.css">
<link rel="stylesheet" href="studioview/studioview.css">
<link rel="stylesheet" href="index.css">
</head>
<meta name="google-site-verification" content="Re7zb-nm555twSGK216lVPDW-7v7ob1vQHYGQT3fBhE" /></head>

<body>

Expand Down Expand Up @@ -144,7 +144,6 @@ <h1 data-i18n="index.advanced">Advanced Settings</h1>
<p>Help test unfinished features. These require a refresh to apply.</b> <a href="https://github.com/forkphorus/forkphorus/wiki/Advanced-Features" target="_blank">Please read this first</a>.</p>
<div class="advanced">
<label><input id="advanced-webgl" class="advanced-feature" type="checkbox"> WebGL Renderer</label>
<label><input id="advanced-legacy" class="advanced-feature" type="checkbox"> Legacy Mode</label>
</div>
</div>

Expand All @@ -160,7 +159,7 @@ <h1 data-i18n="index.code">Code</h1>

<footer>
<a data-i18n="index.privacy" href="privacy">Privacy Policy</a>
- Version a8960e7 (2023-04-30)</footer>
- Version bb717af (2023-08-29)</footer>
</section>

</div>
Expand Down Expand Up @@ -669,15 +668,10 @@ <h1 data-i18n="index.code">Code</h1>

/** Advanced Settings Menu **/
var advancedWebGL = querySelector('#advanced-webgl');
var advancedLegacy = querySelector('#advanced-legacy');
advancedWebGL.checked = P.config.useWebGL;
advancedWebGL.addEventListener('click', function(e) {
setSearchParam('webgl', e.target.checked, e);
});
advancedLegacy.checked = player.getOptions().projectHost === 'https://projects.scratch.mit.edu/internalapi/project/$id/get/';
advancedLegacy.addEventListener('click', function(e) {
setSearchParam('phost', e.target.checked ? 'legacy' : false, e);
});
function setSearchParam(key, value, event) {
event.preventDefault();
if (!confirm(P.i18n.translate('index.advanced.confirmation'))) {
Expand Down
9 changes: 1 addition & 8 deletions phosphorus.dist.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion phosphorus.dist.js.map

Large diffs are not rendered by default.

0 comments on commit 014720f

Please sign in to comment.