You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
meshcore-client/lib/utils/address_bar_web.dart

10 lines
431 B

import 'package:web/web.dart' as web;
/// Puts the address back to the site root once a share link has been read,
/// so a reload, a bookmark or a copied address does not carry the link, or
/// its channel secret, any further (#1309). The history entry's state is
/// kept: Flutter keeps its own navigation state there.
void clearShareLinkFromAddressBar() {
web.window.history.replaceState(web.window.history.state, '', '/');
}

Powered by TurnKey Linux.