Skip to content

Interactive interface for browsing global, full-resolution satellite imagery

remove permalink file #1576

Benjamin Kingb1340f72e138
diff --git a/web/js/containers/permalink.js b/web/js/containers/permalink.js
deleted file mode 100644
index 9a160ea5b..000000000
--- a/web/js/containers/permalink.js
+++ /dev/null
@@ -1,39 +0,0 @@
-import { Component } from 'react';
-import PropTypes from 'prop-types';
-import { connect } from 'react-redux';
-import util from '../util/util';
-import { throttle } from 'lodash';
-
-const replaceHistoryState = throttle(
- function(queryString) {
- if (util.browser.history) {
- window.history.replaceState('', '@OFFICIAL_NAME@', '?' + queryString);
- }
- },
- 2000,
- {
- leading: true,
- trailing: true
- }
-);
-
-class Permalink extends Component {
- render() {
- const { queryString } = this.props;
- if (queryString) replaceHistoryState(queryString);
- return '';
- }
-}
-
-function mapStateToProps(state) {
- const { queryString } = state.link;
- return {
- queryString: queryString
- };
-}
-
-export default connect(mapStateToProps)(Permalink);
-
-Permalink.propTypes = {
- queryString: PropTypes.string
-};