mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 04:51:23 +00:00
Fix idl_type swap
This commit is contained in:
@ -152,6 +152,9 @@ export function new_title() {
|
||||
}
|
||||
|
||||
export function new_webgl_rendering_context() {
|
||||
const foo = document.createElement('canvas');
|
||||
console.log('Does get context work? ' + foo.getContext('webgl'));
|
||||
|
||||
const canvas = document.createElement('canvas');
|
||||
return canvas.getContext('webgl');
|
||||
}
|
||||
|
Reference in New Issue
Block a user