dymosoftware / dymo-connect-framework

DYMO Connect Framework for Javascript.
Other
88 stars 54 forks source link

Dynamically load and unload framework #28

Open shunman opened 2 years ago

shunman commented 2 years ago

Hi. dymo framework did not work check connection status with web service after initialize framework.

so I'm using a jquery getScripts library for dynamically load/unload dymo framework.

previoulsy version dymo.label.framework can handle this, dymo.connect.framework return error message when already framework loaded. "Namespace "goog.debug.Error" already declared."

How can I unload or clear already bind framework?

I tried simply window.dymo = null; window.goog = null did not work

OndraPulkert commented 2 years ago

Any update on this issue? is it still happening?

shunman commented 2 years ago

@OndraPulkert I use some internal code like to. it's working but I'm not sure that correct is.

_createFramework.resetFramework();

window.dymo = undefined; window.goog = {};