Skip to content

Commit 5ea7616

Browse files
committed
Merge remote-tracking branch 'origin/remove-is-supported'
2 parents 795415e + 08a4ed6 commit 5ea7616

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

lib/index.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
function init() {
22
return {
33
collate: require('./collate'),
4-
isSupported,
54
map: require('./map'),
65
outline: require('./outline'),
76
projection: require('./projection'),
@@ -10,18 +9,6 @@ function init() {
109
};
1110
}
1211

13-
function isSupported() {
14-
const attributes = {
15-
antialias: false,
16-
alpha: true,
17-
stencil: true,
18-
depth: true
19-
};
20-
const canvas = document.createElement('canvas');
21-
const gl = canvas.getContext('webgl', attributes) || canvas.getContext('experimental-webgl', attributes);
22-
return !!gl;
23-
}
24-
2512
module.exports = {
2613
init
2714
};

0 commit comments

Comments
 (0)