You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The console output this error : ActiveX.Object is not a constructor。
I know what this error means, but I don't know how it happened. I just imported the dependency and new to instantiation。
My project use Vue2.0, Typescript and Electron
import winax from "winax"
function getDM() {
try {
console.log(global.ActiveXObject)
return new ActiveXObject("dm.dmsoft");
} catch (e) {
try {
execSync(
regsvr32 ${path.join(process.cwd(), 'src/dll/dm.dll')});
} catch (e) {
// fix electron not work
execSync(
);
}
` return new ActiveXObject("dm.dmsoft");`
}
}
The text was updated successfully, but these errors were encountered: