Skip to content

Commit

Permalink
remove cruft
Browse files Browse the repository at this point in the history
  • Loading branch information
oshi97 committed Mar 24, 2023
1 parent 2a22394 commit 94e6571
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion src/ui/components/search/locationbiascomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,6 @@ export default class LocationBiasComponent extends Component {
}

_handleGeolocationError (err) {
console.error('geo err', err, this);
if (err.code === 1) {
this._disableLocationUpdate();
}
Expand Down
3 changes: 0 additions & 3 deletions src/ui/components/search/searchcomponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -585,9 +585,6 @@ export default class SearchComponent extends Component {
promptForLocation (query) {
if (this._promptForLocation) {
return this.fetchQueryIntents(query)
.then(q => {
return q;
})
.then(queryIntents => queryIntents?.includes('NEAR_ME'))
.then(queryHasNearMeIntent => {
if (queryHasNearMeIntent && !this.core.storage.get(StorageKeys.GEOLOCATION)) {
Expand Down
1 change: 0 additions & 1 deletion src/ui/templates/search/locationbias.hbs
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{{log this}}
<div class="yxt-LocationBias" {{#unless shouldShow}}style="display:none"{{/unless}}>
<div class="yxt-LocationBias-container">
<span class="yxt-locationBias-bullet {{#if isPreciseLocation}}yxt-locationBias-preciseLoc{{/if}}
Expand Down
3 changes: 1 addition & 2 deletions tests/setup/mockwindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
export default function mockWindow (windowSpy, data = {}) {
windowSpy.mockImplementation(() => ({
performance: {
mark: jest.fn(),
hey: 123
mark: jest.fn()
},
sessionStorage: {
getItem: jest.fn(),
Expand Down

0 comments on commit 94e6571

Please sign in to comment.