Skip to content

Commit ceaf0c8

Browse files
MapleYeMarkPieszak
authored andcommitted
Update temporary-aspnetcore-engine.ts (TrilonIO#256)
1 parent e907562 commit ceaf0c8

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

Client/polyfills/temporary-aspnetcore-engine.ts

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -126,10 +126,15 @@ export function ngAspnetCoreEngine(
126126
const LINKS = [];
127127
let TITLE = '';
128128

129-
let STYLES_STRING = htmlDoc.substring(
130-
htmlDoc.indexOf('<style ng-transition'),
131-
htmlDoc.lastIndexOf('</style>') + 8
132-
);
129+
//let STYLES_STRING = htmlDoc.substring(
130+
//htmlDoc.indexOf('<style ng-transition'),
131+
//htmlDoc.lastIndexOf('</style>') + 8
132+
//);
133+
let STYLES_STRING: string = htmlDoc.indexOf('<style ng-transition') > 0
134+
? htmlDoc.substring(
135+
htmlDoc.indexOf('<style ng-transition'),
136+
htmlDoc.lastIndexOf('</style>') + 8)
137+
: null;
133138
// STYLES_STRING = STYLES_STRING.replace(/\s/g, '').replace('<styleng-transition', '<style ng-transition');
134139

135140
const HEAD = AST_DOCUMENT.head;

0 commit comments

Comments
 (0)