Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

use isFileURL instead

  • Loading branch information...
commit 675f44c447f081cef41dc95462e35ebd5f87a091 1 parent c215d28
@yifan authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Core/Source/DTHTMLAttributedStringBuilder.m
View
2  Core/Source/DTHTMLAttributedStringBuilder.m
@@ -620,7 +620,7 @@ - (void)_registerTagEndHandlers
NSString *type = [[_currentTag attributeForKey:@"type"] lowercaseString];
if ([type isEqualToString:@"text/css"]) {
NSURL *stylesheetURL = [NSURL URLWithString:href relativeToURL:_baseURL];
- if ([[stylesheetURL scheme] isEqualToString:@"file"]) {
+ if ([stylesheetURL isFileURL]) {
NSString *stylesheetContent = [NSString stringWithContentsOfURL:stylesheetURL encoding:NSUTF8StringEncoding error:nil];
if (stylesheetContent) {
DTCSSStylesheet *localSheet = [[DTCSSStylesheet alloc] initWithStyleBlock:stylesheetContent];
Please sign in to comment.
Something went wrong with that request. Please try again.