Skip to content

Commit 96f8056

Browse files
authored
Merge branch 'develop' into adding-new-translations-in-enUS-and-ptBR-for-sketch-visibility
2 parents beb7a8f + 2336986 commit 96f8056

File tree

3 files changed

+19
-15
lines changed

3 files changed

+19
-15
lines changed

client/index.jsx

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,25 @@ const initialState = window.__INITIAL_STATE__;
2020

2121
const store = configureStore(initialState);
2222

23-
// Add a banner to the page
24-
const banner = document.createElement('div');
25-
banner.id = 'processing-banner';
26-
document.body.appendChild(banner);
23+
if (
24+
window.location.href.indexOf('full') === -1 &&
25+
window.location.href.indexOf('embed') === -1
26+
) {
27+
// Add a banner to the page
28+
const banner = document.createElement('div');
29+
banner.id = 'processing-banner';
30+
document.body.appendChild(banner);
2731

28-
const link = document.createElement('link');
29-
link.rel = 'stylesheet';
30-
link.href = 'https://foundation-donate-banner.netlify.app/static/css/main.css';
31-
document.head.appendChild(link);
32+
const link = document.createElement('link');
33+
link.rel = 'stylesheet';
34+
link.href =
35+
'https://foundation-donate-banner.netlify.app/static/css/main.css';
36+
document.head.appendChild(link);
3237

33-
const script = document.createElement('script');
34-
script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js';
35-
document.body.appendChild(script);
38+
const script = document.createElement('script');
39+
script.src = 'https://foundation-donate-banner.netlify.app/static/js/main.js';
40+
document.body.appendChild(script);
3641

37-
if (window.location.href.indexOf('full') === -1) {
3842
const buttonScript = document.createElement('script');
3943
buttonScript.type = 'text/javascript';
4044
buttonScript.defer = true;

package-lock.json

Lines changed: 2 additions & 2 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p5.js-web-editor",
3-
"version": "2.18.1",
3+
"version": "2.18.2",
44
"description": "The web editor for p5.js.",
55
"scripts": {
66
"clean": "rimraf dist",

0 commit comments

Comments
 (0)