mirror of
https://github.com/nasa/openmct.git
synced 2025-05-03 01:02:52 +00:00
26 lines
574 B
JavaScript
26 lines
574 B
JavaScript
/*global define*/
|
|
|
|
define(
|
|
[],
|
|
function () {
|
|
"use strict";
|
|
|
|
/**
|
|
* Controller for embedded web pages; serves simply as a
|
|
* wrapper for `$sce` to mark pages as trusted.
|
|
*/
|
|
function EmbeddedPageController($sce) {
|
|
return {
|
|
/**
|
|
* Alias of `$sce.trustAsResourceUrl`.
|
|
*/
|
|
trust: function (url) {
|
|
return $sce.trustAsResourceUrl(url);
|
|
}
|
|
};
|
|
}
|
|
|
|
return EmbeddedPageController;
|
|
}
|
|
|
|
); |