Commit f11445fa authored by wang's avatar wang

反解析第一步成功

parent 59b52da6
......@@ -28,3 +28,16 @@ for (let i = 0; i < plugins.length; i++) {
plgs[i] = pi
}
let mimes = navigator.mimeTypes
let res = [];
let r = Object.getOwnPropertyNames(mimes);
for (let i = 0; i < r.length; i++) {
let a = mimes[r[i]];
res.push({
suffixes:a.suffixes,
type: a.type,
enabledPlugin: {
filename: a.enabledPlugin.filename
}
})
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment