busachick / harviewer

Automatically exported from code.google.com/p/harviewer
0 stars 0 forks source link

Remove har file from existing viewer #94

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be great if we could remove har files from an existing viewer.

var harView = document.getElementById("content").repObject;

new_har_file = HARFILE_SPEC;
harView.appendPreview(new_har_file);

And then, be able to remove the har file like this:

harView.remove(new_har_file);

Maybe we can return a flag to see if it has succeeded.

Thanks!

Original issue reported on code.google.com by paqs140...@gmail.com on 3 Feb 2014 at 1:39