diff options
Diffstat (limited to 'extensions/common')
-rw-r--r-- | extensions/common/user_script.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/common/user_script.cc b/extensions/common/user_script.cc index b3d82bb..6b64741 100644 --- a/extensions/common/user_script.cc +++ b/extensions/common/user_script.cc @@ -52,7 +52,8 @@ int UserScript::GenerateUserScriptID() { bool UserScript::IsURLUserScript(const GURL& url, const std::string& mime_type) { - return base::EndsWith(url.ExtractFileName(), kFileExtension, false) && + return base::EndsWith(url.ExtractFileName(), kFileExtension, + base::CompareCase::INSENSITIVE_ASCII) && mime_type != "text/html"; } |