Skip to content

Commit a52a54b

Browse files
author
john lim
committed
consoles gone
1 parent 754655a commit a52a54b

File tree

3 files changed

+11
-5
lines changed

3 files changed

+11
-5
lines changed

__tests__/HTMLPanel.test.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ test('Renders HTMLPanel component', () => {
2727
<Test/>
2828
);
2929
expect(screen.getAllByRole('textbox')).toHaveLength(2);
30-
// console.log(container.firstChild);
3130
expect(screen.getByText('Div')).toBeInTheDocument();
3231
expect(screen.getByText('Image')).toBeInTheDocument();
3332
expect(screen.getByText('Form')).toBeInTheDocument();

app/electron/main.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,9 @@ app.on('web-contents-created', (event, contents) => {
229229
'https://github.com',
230230
'https://nextjs.org',
231231
'https://www.facebook.com',
232-
'https://developer.mozilla.org'
232+
'https://developer.mozilla.org',
233+
'https://www.smashingmagazine.com',
234+
'https://www.html5rocks.com'
233235
];
234236
// Log and prevent the app from navigating to a new page if that page's origin is not whitelisted
235237
if (!validOrigins.includes(parsedUrl.origin)) {
@@ -251,7 +253,9 @@ app.on('web-contents-created', (event, contents) => {
251253
'https://github.com',
252254
'https://nextjs.org',
253255
'https://developer.mozilla.org',
254-
'https://www.facebook.com'
256+
'https://www.facebook.com',
257+
'https://www.smashingmagazine.com',
258+
'https://www.html5rocks.com'
255259
];
256260

257261
// Log and prevent the app from redirecting to a new page
@@ -292,7 +296,9 @@ app.on('web-contents-created', (event, contents) => {
292296
'https://nextjs.org',
293297
'https://developer.mozilla.org',
294298
'https://github.com',
295-
'https://www.facebook.com'
299+
'https://www.facebook.com',
300+
'https://www.smashingmagazine.com',
301+
'https://www.html5rocks.com'
296302
];
297303
// Log and prevent the app from navigating to a new page if that page's origin is not whitelisted
298304
if (!validOrigins.includes(parsedUrl.origin)) {

app/src/components/main/Canvas.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ import StateContext from '../../context/context';
55
import { Component, DragItem } from '../../interfaces/Interfaces';
66
import { combineStyles } from '../../helperFunctions/combineStyles';
77
import renderChildren from '../../helperFunctions/renderChildren';
8+
import { ConfirmationNumberRounded } from '@material-ui/icons';
89

910
const findNestedChild = (curr, components) => {
1011
components.forEach((comp, i) => {
1112
comp.children.forEach(child => {
12-
if (child.name === curr.name) console.log('childname', child.name);
13+
if (child.name === curr.name) ConfirmationNumberRounded;
1314
});
1415
if (comp.children.length !== 0) findNestedChild(curr, comp.children);
1516
});

0 commit comments

Comments
 (0)