OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
| 7 /* globals NaClTerm, lib */ |
| 8 |
7 'use strict'; | 9 'use strict'; |
8 | 10 |
9 NaClTerm.nmf = 'mongoose.nmf' | 11 NaClTerm.nmf = 'mongoose.nmf'; |
10 | 12 |
11 lib.rtdep('lib.f') | 13 lib.rtdep('lib.f'); |
12 | 14 |
13 window.onload = function() { | 15 window.onload = function() { |
14 lib.init(function() { | 16 lib.init(function() { |
15 navigator.webkitPersistentStorage.requestQuota(1024*1024, | 17 navigator.webkitPersistentStorage.requestQuota(1024*1024, |
16 function(bytes) { | 18 function(bytes) { |
17 NaClTerm.init(); | 19 NaClTerm.init(); |
18 }, | 20 }, |
19 function(e) { console.log('Error', e); }); | 21 function(e) { console.log('Error', e); }); |
20 }); | 22 }); |
21 }; | 23 }; |
OLD | NEW |