File tree Expand file tree Collapse file tree 4 files changed +16
-8
lines changed
build-a-rest-api-frontend
source_code_final/static/js
source_code_step_3/static/js
source_code_step_4/static/js
source_code_step_5/static/js Expand file tree Collapse file tree 4 files changed +16
-8
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ import { DebugForm } from "./debug.js";
55function main ( ) {
66 new People ( ) ;
77 new Notes ( ) ;
8- const debug = new DebugForm ( ) ;
9- debug . showResponse ( "" ) ;
8+ if ( document . querySelector ( ".debug-card" ) ) {
9+ const debug = new DebugForm ( ) ;
10+ debug . showResponse ( "" ) ;
11+ }
1012}
1113
1214main ( ) ;
Original file line number Diff line number Diff line change 11import { DebugForm } from "./debug.js" ;
22
33function main ( ) {
4- const debug = new DebugForm ( ) ;
5- debug . showResponse ( "" ) ;
4+ if ( document . querySelector ( ".debug-card" ) ) {
5+ const debug = new DebugForm ( ) ;
6+ debug . showResponse ( "" ) ;
7+ }
68}
79
810main ( ) ;
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ import { DebugForm } from "./debug.js";
33
44function main ( ) {
55 new People ( ) ;
6- const debug = new DebugForm ( ) ;
7- debug . showResponse ( "" ) ;
6+ if ( document . querySelector ( ".debug-card" ) ) {
7+ const debug = new DebugForm ( ) ;
8+ debug . showResponse ( "" ) ;
9+ }
810}
911
1012main ( ) ;
Original file line number Diff line number Diff line change @@ -5,8 +5,10 @@ import { DebugForm } from "./debug.js";
55function main ( ) {
66 new People ( ) ;
77 new Notes ( ) ;
8- const debug = new DebugForm ( ) ;
9- debug . showResponse ( "" ) ;
8+ if ( document . querySelector ( ".debug-card" ) ) {
9+ const debug = new DebugForm ( ) ;
10+ debug . showResponse ( "" ) ;
11+ }
1012}
1113
1214main ( ) ;
You can’t perform that action at this time.
0 commit comments