File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -199,7 +199,7 @@ class Widget {
199199 */
200200 setupElements ( ) {
201201 if ( ! this . parentContainerEl ) {
202- throw new Error ( "No element " ) ;
202+ throw new Error ( "Parent container element not found " ) ;
203203 }
204204
205205 this . rsWidget = this . parentContainerEl . querySelector ( '.rs-widget' ) ;
@@ -270,10 +270,8 @@ class Widget {
270270 this . parentContainerEl ;
271271
272272 if ( element instanceof HTMLElement ) {
273- console . log ( 'instanceof HTMLElement' ) ;
274273 this . parentContainerEl = element ;
275274 } else if ( typeof element === "string" ) {
276- console . log ( 'typeof string' ) ;
277275 this . parentContainerEl = document . getElementById ( element ) ;
278276 if ( ! parent ) {
279277 throw Error ( "Failed to find target DOM element with id=\"" + element + "\"" ) ;
You can’t perform that action at this time.
0 commit comments