jpush-ui
Version:
极光大数据前端Angular组件(^6.1.0)
29 lines • 1.27 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
var universal_1 = require("@ng-toolkit/universal");
var common_1 = require("@angular/common");
var PlatformService = /** @class */ (function () {
function PlatformService(window, document, localStorage, platformId) {
this.window = window;
this.document = document;
this.localStorage = localStorage;
this.isBrowser = true;
if (common_1.isPlatformServer(platformId)) {
this.isBrowser = false;
}
}
PlatformService.decorators = [
{ type: core_1.Injectable },
];
/** @nocollapse */
PlatformService.ctorParameters = function () { return [
{ type: undefined, decorators: [{ type: core_1.Inject, args: [universal_1.WINDOW,] },] },
{ type: undefined, decorators: [{ type: core_1.Inject, args: [common_1.DOCUMENT,] },] },
{ type: undefined, decorators: [{ type: core_1.Inject, args: [universal_1.LOCAL_STORAGE,] },] },
{ type: undefined, decorators: [{ type: core_1.Inject, args: [core_1.PLATFORM_ID,] },] },
]; };
return PlatformService;
}());
exports.PlatformService = PlatformService;
//# sourceMappingURL=platform.service.js.map