mshtml: Add text/jscript as valid mime type for javascript files.
This commit is contained in:
parent
86bd0603a2
commit
66c1a099aa
|
@ -816,11 +816,13 @@ static BOOL get_guid_from_type(LPCWSTR type, GUID *guid)
|
|||
{
|
||||
const WCHAR text_javascriptW[] =
|
||||
{'t','e','x','t','/','j','a','v','a','s','c','r','i','p','t',0};
|
||||
const WCHAR text_jscriptW[] =
|
||||
{'t','e','x','t','/','j','s','c','r','i','p','t',0};
|
||||
const WCHAR text_vbscriptW[] =
|
||||
{'t','e','x','t','/','v','b','s','c','r','i','p','t',0};
|
||||
|
||||
/* FIXME: Handle more types */
|
||||
if(!strcmpiW(type, text_javascriptW)) {
|
||||
if(!strcmpiW(type, text_javascriptW) || !strcmpiW(type, text_jscriptW)) {
|
||||
*guid = CLSID_JScript;
|
||||
}else if(!strcmpiW(type, text_vbscriptW)) {
|
||||
*guid = CLSID_VBScript;
|
||||
|
|
Loading…
Reference in New Issue