File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4848 document . getElementById ( 'app' ) . replaceWith ( app )
4949} catch ( err ) {
5050 console . error ( 'Error rendering pane:' , err )
51- document . getElementById ( 'app' ) . innerHTML = `<p style="color:red;">Error: ${ err . message } </p>`
51+ const appElement = document . getElementById ( 'app' )
52+ const errorParagraph = document . createElement ( 'p' )
53+ errorParagraph . style . color = 'red'
54+ errorParagraph . textContent = `Error: ${ err . message } `
55+ appElement . textContent = ''
56+ appElement . appendChild ( errorParagraph )
5257}
5358
Original file line number Diff line number Diff line change 22 "name" : " source-pane" ,
33 "version" : " 3.0.2" ,
44 "description" : " Solid-compatible Panes: Source editor" ,
5- "sideEffects" : [
6- " *.css"
7- ],
8- "main" : " src/sourcePane.js" ,
5+ "main" : " lib/source-pane.js" ,
96 "files" : [
10- " /src " ,
7+ " /lib " ,
118 " README.md" ,
129 " LICENSE"
1310 ],
11+ "sideEffects" : [
12+ " **/*.css"
13+ ],
1414 "scripts" : {
1515 "clean" : " rm -rf lib" ,
1616 "build" : " npm run clean && npm run build-dist" ,
Original file line number Diff line number Diff line change 9999}
100100
101101.sourcePaneControlVisible {
102- visibility : visible ;
102+ display : block ;
103103}
104104
105105.sourcePaneControlHidden {
106- visibility : collapse ;
106+ display : none ;
107107}
You can’t perform that action at this time.
0 commit comments