mirror of
https://github.com/nasa/openmct.git
synced 2025-01-29 15:43:52 +00:00
[Build] Declare screenfull
...and shim such that it can be acquired in the normal AMD way. Avoids use of global variable to satisfy JSHint.
This commit is contained in:
parent
c00d77dcb1
commit
6289fe333b
3
main.js
3
main.js
@ -44,6 +44,9 @@ requirejs.config({
|
||||
},
|
||||
"moment-duration-format": {
|
||||
"deps": [ "moment" ]
|
||||
},
|
||||
"screenfull": {
|
||||
"exports": "screenfull"
|
||||
}
|
||||
}
|
||||
});
|
||||
|
@ -25,7 +25,7 @@
|
||||
*/
|
||||
define(
|
||||
["screenfull"],
|
||||
function () {
|
||||
function (screenfull) {
|
||||
|
||||
var ENTER_FULLSCREEN = "Enter full screen mode",
|
||||
EXIT_FULLSCREEN = "Exit full screen mode";
|
||||
|
@ -65,6 +65,9 @@ requirejs.config({
|
||||
},
|
||||
"moment-duration-format": {
|
||||
"deps": [ "moment" ]
|
||||
},
|
||||
"screenfull": {
|
||||
"exports": "screenfull"
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user