diff --git a/js/angular/service/decorators/angular-ios9-uiwebview.patch.js b/js/angular/service/decorators/angular-ios9-uiwebview.patch.js index 722c296c9e4..050de4a7d02 100644 --- a/js/angular/service/decorators/angular-ios9-uiwebview.patch.js +++ b/js/angular/service/decorators/angular-ios9-uiwebview.patch.js @@ -1,5 +1,5 @@ /** - * ================== angular-ios9-uiwebview.patch.js v1.1.0 ================== + * ================== angular-ios9-uiwebview.patch.js v1.1.1 ================== * * This patch works around iOS9 UIWebView regression that causes infinite digest * errors in Angular. @@ -8,7 +8,7 @@ * have the workaround baked in. * * To apply this patch load/bundle this file with your application and add a - * dependency on the "ngIOS9Patch" module to your main app module. + * dependency on the "ngIOS9UIWebViewPatch" module to your main app module. * * For example: * @@ -35,8 +35,9 @@ */ angular.module('ngIOS9UIWebViewPatch', ['ng']).config(['$provide', function($provide) { + 'use strict'; + $provide.decorator('$browser', ['$delegate', '$window', function($delegate, $window) { - 'use strict'; if (isIOS9UIWebView($window.navigator.userAgent)) { return applyIOS9Shim($delegate);