Files
UmbracoPackages/UmbracoPackages/App_Plugins/brothers.uNesting/interceptor.js
T
2019-08-28 20:17:49 +02:00

17 lines
536 B
JavaScript

angular.module('umbraco.services').config(['$httpProvider', function ($httpProvider)
{
$httpProvider.interceptors.push(['$q', '$injector', 'notificationsService', function ($q, $injector, notificationsService)
{
return {
'request': function (request)
{
if (request.url.indexOf("views/propertyeditors/nestedcontent/nestedcontent.html") === 0)
{
request.url = '/App_Plugins/brothers.uNesting/uNesting.html';
}
return request || $q.when(request);
}
};
}]);
}]);