This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pushd "%~dp0" | |
| dir /b %SystemRoot%\servicing\Packages\*containers*.mum >containers.txt | |
| for /f %%i in ('findstr /i . containers.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
| del containers.txt | |
| Dism /online /enable-feature /featurename:Containers -All /LimitAccess /ALL | |
| pause |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Injectable } from '@angular/core'; | |
| import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpErrorResponse, HttpResponse } from '@angular/common/http'; | |
| @Injectable() | |
| export class CustomInterceptor implements HttpInterceptor { | |
| constructor() { } | |
| intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>> { | |
| if (request.params.has('$count')) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var isPopupBlocked = function() { | |
| var isBlocked, | |
| popup = window.open('about:blank', 'popup_test','width=5, height=5, left=0, top=0'); | |
| // pop under | |
| if(popup) popup.blur(); | |
| window.focus(); | |
| isBlocked = !popup || typeof popup == 'undefined' || typeof popup.closed=='undefined' || popup.closed || popup.innerHeight == 0; | |
| if(popup) popup.close(); |
NewerOlder