Skip to content

Commit 9df10a7

Browse files
committed
stick to conventions
1 parent 8b5c560 commit 9df10a7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/widget.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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 + "\"");

0 commit comments

Comments
 (0)