@trademe/ng-defer-load
Advanced tools
Comparing version 3.1.0-beta.2 to 3.1.0-beta.3
@@ -34,3 +34,4 @@ "use strict"; | ||
DeferLoadDirective.prototype.ngOnInit = function () { | ||
if (common_1.isPlatformServer(this.platformId) && this.preRender === true) { | ||
if ((common_1.isPlatformServer(this.platformId) && this.preRender === true) || | ||
(common_1.isPlatformBrowser(this.platformId) && this.fallbackEnabled === false && !this.hasCompatibleBrowser())) { | ||
this.load(); | ||
@@ -47,9 +48,4 @@ } | ||
} | ||
else { | ||
if (this.fallbackEnabled === true) { | ||
this.addScrollListeners(); | ||
} | ||
else { | ||
this.load(); | ||
} | ||
else if (this.fallbackEnabled === true) { | ||
this.addScrollListeners(); | ||
} | ||
@@ -56,0 +52,0 @@ } |
{ | ||
"name": "@trademe/ng-defer-load", | ||
"version": "3.1.0-beta.2", | ||
"version": "3.1.0-beta.3", | ||
"description": "Angular directive to load elements lazily", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19445
190