PPTXjs icon indicating copy to clipboard operation
PPTXjs copied to clipboard

Better error handling

Open def00111 opened this issue 4 years ago • 3 comments

When i do:

try {
  $("#your_div_id_result").pptxToHtml({
    ...
  });
} catch (ex) {
}

it does not seem to catch the error.

I must use:

window.addEventListener("error", function(event) {}, false);

def00111 avatar Aug 08 '21 14:08 def00111

Maybe pptxToHtml can return a Promise?

def00111 avatar Aug 08 '21 14:08 def00111

@def00111 Thanks for all your comments ... I'm currently in the process of fixing bugs, and in the future I plan to change and add more features :)

meshesha avatar Aug 29 '21 14:08 meshesha