@ou-imd/study-app-detector
v1.0.3
Published
A package to detect if an interactive is running inside the study app
Downloads
10
Readme
Study App Detector
A package to detect if an interactive is running inside the study app.
Install Instructions
In a NPM enabled project run:
npm install @ou-imd/study-app-detector
Usage
import { detectStudyApp } from "@ou-imd/study-app-detector";
let studyAppDetails = detectStudyApp();
if(studyAppDetails.moodleMobile && studyAppDetails.disabledFlag){
//actionForStudyApp();
}
What Is the disabledFlag Parameter?
The parameter key is disableStudyApp
and the 'enabled' values are 1
or true
.