Skip to content

Commit

Permalink
refactor(platform-browser-dynamic): Drop IE related workarounds. (#49761
Browse files Browse the repository at this point in the history
)

IE is not supported by Angular anymore, we can drop IE specific code !

PR Close #49761
  • Loading branch information
JeanMeche authored and AndrewKushnir committed Apr 11, 2023
1 parent 8020347 commit 1da3e5f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
*/

import {ResourceLoader} from '@angular/compiler';
import {CompilerFactory, createPlatformFactory, platformCore, PlatformRef, Provider, StaticProvider} from '@angular/core';
import {createPlatformFactory, Provider} from '@angular/core';

import {platformCoreDynamic} from './platform_core_dynamic';
import {INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS} from './platform_providers';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,9 @@ export class ResourceLoaderImpl extends ResourceLoader {
xhr.responseType = 'text';

xhr.onload = function() {
// responseText is the old-school way of retrieving response (supported by IE8 & 9)
// response/responseType properties were introduced in ResourceLoader Level2 spec (supported
// by IE10)
const response = xhr.response || xhr.responseText;
const response = xhr.response;

// normalize IE9 bug (https://bugs.jquery.com/ticket/1450)
let status = xhr.status === 1223 ? 204 : xhr.status;
let status = xhr.status;

// fix status code when it is 0 (0 status is undocumented).
// Occurs when accessing file resources or on Android 4.1 stock browser
Expand Down

0 comments on commit 1da3e5f

Please sign in to comment.