We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9d56363 commit dab3248Copy full SHA for dab3248
src/ScratchCard.ts
@@ -40,7 +40,7 @@ class ScratchCard {
40
41
this.config = {...defaults, ...config};
42
this.scratchType = this.config.scratchType;
43
- this.container = typeof selector === 'string' || selector instanceof String ?
+ this.container = (typeof selector === 'string' || selector instanceof String) ?
44
document.querySelector(String(selector)) : selector;
45
this.position = [0, 0]; // init position
46
this.readyToClear = false;
0 commit comments