enable <:Window bind:online/> - fixes #936 (#937)

pull/940/head
Rich Harris 7 years ago committed by GitHub
parent b5821b846a
commit 60b883b066
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -12,6 +12,7 @@ const validBindings = [
'outerHeight',
'scrollX',
'scrollY',
'online'
];
export default function validateWindow(validator: Validator, node: Node, refs: Map<string, Node[]>, refCallees: Node[]) {

@ -1,5 +1,5 @@
[{
"message": "'potato' is not a valid binding on <:Window> — valid bindings are innerWidth, innerHeight, outerWidth, outerHeight, scrollX or scrollY",
"message": "'potato' is not a valid binding on <:Window> — valid bindings are innerWidth, innerHeight, outerWidth, outerHeight, scrollX, scrollY or online",
"loc": {
"line": 1,
"column": 9

Loading…
Cancel
Save