File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " goban-engine" ,
3
- "version" : " 8.3.48 " ,
3
+ "version" : " 8.3.49 " ,
4
4
"description" : " " ,
5
5
"main" : " build/goban-engine.js" ,
6
6
"types" : " build/engine/index.d.ts" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " goban" ,
3
- "version" : " 8.3.48 " ,
3
+ "version" : " 8.3.49 " ,
4
4
"description" : " " ,
5
5
"main" : " build/goban.js" ,
6
6
"types" : " build/src/index.d.ts" ,
Original file line number Diff line number Diff line change @@ -53,7 +53,18 @@ declare let ResizeObserver: any;
53
53
54
54
const USE_CELL_RENDERER = true ;
55
55
// Shadow dom provided a bit of a performance boost, but older browsers don't support it yet.
56
- const USE_SHADOW_DOM = document . body . attachShadow !== undefined && CSSStyleSheet !== undefined ;
56
+ function canConstructStyleSheet ( ) {
57
+ try {
58
+ new CSSStyleSheet ( ) ;
59
+ return true ;
60
+ } catch ( e ) { }
61
+
62
+ return false ;
63
+ }
64
+ const USE_SHADOW_DOM =
65
+ document . body . attachShadow !== undefined &&
66
+ CSSStyleSheet !== undefined &&
67
+ canConstructStyleSheet ( ) ;
57
68
58
69
export interface SVGRendererGobanConfig extends GobanConfig {
59
70
board_div ?: HTMLElement ;
You can’t perform that action at this time.
0 commit comments