• Robert Knight's avatar
    Remove all links, scripts and stylesheets when client is unloaded · a67e7787
    Robert Knight authored
    Ensure that all links, script and stylesheet elements added to the page
    by the boot script are removed when the client is unloaded.
    
    This fixes a problem where the recently added `<link>` for the notebook
    app was not removed when the page was unloaded, causing attempts to
    activate the browser extension on a page where the client had previously
    been loaded and then removed, to fail.
    
    The implementation works by tagging all elements with a
    `hypothesis-asset` attribute in the boot script and then removing these
    elements when the client is unloaded.
    a67e7787
Name
Last commit
Last update
..
annotator Loading commit data...
boot Loading commit data...
images/icons Loading commit data...
shared Loading commit data...
sidebar Loading commit data...
styles Loading commit data...
test-util Loading commit data...
types Loading commit data...
.eslintrc Loading commit data...
karma.config.js Loading commit data...
tsconfig.json Loading commit data...