Thread:Extension talk:Include WP/TOC Disappears/reply

I found the problem but I don't know enough JS to fix it...

The JS file ext.incwp.js function showPageFragment the toc is removed but instead of just removing it from the imported fragment it is removing it from the whole page.

If anyone could suggest a fix I would appreciate it :-)