I expect this will fail in node because it assumes global `navigator` object.