add opera at the end

This commit is contained in:
Henry Zhu 2016-11-24 15:54:54 -05:00
parent 56817f8e7c
commit b03180a26c

View File

@ -85,11 +85,6 @@ const getLowestImplementedVersion = ({ features }, env) => {
// `equals` in compat-table
Object.keys(test).forEach((t) => {
test[invertedEqualsEnv[t]] = test[t];
// add opera
if (t.startsWith("chrome")) {
let opera = parseInt(t.replace("chrome", "")) - 13;
test[`opera${opera}`] = test[t];
}
});
return Object.keys(test)
@ -131,6 +126,11 @@ for (const pluginName in pluginFeatures) {
plugin[env] = version;
}
}
// add opera
if (plugin.chrome) {
plugin.opera = plugin.chrome - 13;
}
});
data[pluginName] = plugin;
}