function removeTokens(url, param) { window.onunload = function (type) { if(type && type != 0) { if (!window.isLayer && parent == space.topWin) { space.plugins.loading.top.show(); } } if (!param) { return; } if (url == 'nullToken') { return; } try { space.topWin.spaceIndex.recycleToken(url, { tokenList: param }); } catch (error) { console.error(error); } } }