Index: trunk/extensions/UsabilityInitiative/Vector/Modules/EditWarning/EditWarning.js |
— | — | @@ -19,7 +19,7 @@ |
20 | 20 | fallbackResult = fallbackWindowOnBeforeUnload(); |
21 | 21 | } |
22 | 22 | // Check if their onbeforeunload hook returned something |
23 | | - if ( fallbackResult !== null ) { |
| 23 | + if ( fallbackResult !== undefined ) { |
24 | 24 | // Exit here, returning their message |
25 | 25 | return fallbackResult; |
26 | 26 | } |