cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From i..@apache.org
Subject [1/2] git commit: UTTypeCopyPreferredTagWithClass returns nil mimetype for css when there is no network
Date Fri, 27 Jun 2014 17:59:24 GMT
Repository: cordova-plugin-file
Updated Branches:
  refs/heads/master f6fdb4a8c -> 0dba6b4f2


UTTypeCopyPreferredTagWithClass returns nil mimetype for css when there is no network


Project: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/commit/04346828
Tree: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/tree/04346828
Diff: http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/diff/04346828

Branch: refs/heads/master
Commit: 043468284496733f5b1e06f9d9c5d6f0866cfa75
Parents: 29c139b
Author: Lou Franco <lfranco@greenwave-solutions.com>
Authored: Tue Jun 24 18:24:48 2014 -0400
Committer: Lou Franco <lfranco@greenwave-solutions.com>
Committed: Tue Jun 24 18:24:48 2014 -0400

----------------------------------------------------------------------
 src/ios/CDVAssetLibraryFilesystem.m | 2 ++
 src/ios/CDVLocalFilesystem.m        | 2 ++
 2 files changed, 4 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/04346828/src/ios/CDVAssetLibraryFilesystem.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVAssetLibraryFilesystem.m b/src/ios/CDVAssetLibraryFilesystem.m
index 1197f06..2354ce9 100644
--- a/src/ios/CDVAssetLibraryFilesystem.m
+++ b/src/ios/CDVAssetLibraryFilesystem.m
@@ -96,6 +96,8 @@ NSString* const kCDVAssetsLibraryScheme = @"assets-library";
                     mimeType = @"audio/mp4";
                 } else if ([[fullPath pathExtension] rangeOfString:@"wav"].location != NSNotFound)
{
                     mimeType = @"audio/wav";
+                } else if ([[fullPath pathExtension] rangeOfString:@"css"].location != NSNotFound)
{
+                    mimeType = @"text/css";
                 }
             }
             CFRelease(typeId);

http://git-wip-us.apache.org/repos/asf/cordova-plugin-file/blob/04346828/src/ios/CDVLocalFilesystem.m
----------------------------------------------------------------------
diff --git a/src/ios/CDVLocalFilesystem.m b/src/ios/CDVLocalFilesystem.m
index d1576ad..2793977 100644
--- a/src/ios/CDVLocalFilesystem.m
+++ b/src/ios/CDVLocalFilesystem.m
@@ -639,6 +639,8 @@
                     mimeType = @"audio/mp4";
                 } else if ([[fullPath pathExtension] rangeOfString:@"wav"].location != NSNotFound)
{
                     mimeType = @"audio/wav";
+                } else if ([[fullPath pathExtension] rangeOfString:@"css"].location != NSNotFound)
{
+                    mimeType = @"text/css";
                 }
             }
             CFRelease(typeId);


Mime
View raw message