1 | (function() {
|
2 | if (typeof FastBoot === 'undefined') {
|
3 | var current = document.getElementById('fastboot-body-start');
|
4 |
|
5 | if (
|
6 | current &&
|
7 | typeof Ember.ViewUtils.isSerializationFirstNode === 'function' &&
|
8 | Ember.ViewUtils.isSerializationFirstNode(current.nextSibling)
|
9 | ) {
|
10 | Ember.ApplicationInstance.reopen({
|
11 | _bootSync: function(options) {
|
12 | if (options === undefined) {
|
13 | options = {
|
14 | _renderMode: 'rehydrate'
|
15 | };
|
16 | }
|
17 |
|
18 | return this._super(options);
|
19 | }
|
20 | });
|
21 |
|
22 |
|
23 |
|
24 | current.parentNode.removeChild(current);
|
25 | var end = document.getElementById('fastboot-body-end');
|
26 |
|
27 | if (end) {
|
28 | end.parentNode.removeChild(end);
|
29 | }
|
30 | }
|
31 | }
|
32 | })();
|