12345678910111213141516171819202122232425262728293031323334353637 |
- "use strict";
- /*
- *+------------------------------------------------------------------------+
- *| Licensed Materials - Property of IBM
- *| IBM Cognos Products: dashboard
- *| (C) Copyright IBM Corp. 2016, 2018
- *|
- *| US Government Users Restricted Rights - Use, duplication or disclosure
- *| restricted by GSA ADP Schedule Contract with IBM Corp.
- *+------------------------------------------------------------------------+
- */
- define([], function () {
- return {
- isStoryMode: function isStoryMode(glassContext) {
- if (glassContext.appController.currentAppView.currentContentView) {
- return glassContext.appController.currentAppView.currentContentView.isStoryMode === true;
- }
- return glassContext.appController.currentAppView.defaultContent.isStoryMode === true;
- },
- /** Returns true if we're in 'development' mode, false otherwise. */
- isDevMode: function isDevMode(services) {
- if (services && services.biGlass && services.biGlass.glassContext && services.biGlass.glassContext.isDevInstall) {
- return services.biGlass.glassContext.isDevInstall();
- }
- return false;
- },
- getAjaxService: function getAjaxService(glassContext) {
- return glassContext.services.ajax;
- }
- };
- });
- //# sourceMappingURL=GlassUtil.js.map
|