- add favorites and reported tabs in user profile pages - add remove favorites - customers can view a deal directly from profiles section and deal modal is shown in explore page - fix formatting by pint
12 lines
310 B
JavaScript
12 lines
310 B
JavaScript
import {showDealModal} from "./deal-view-modal.js";
|
|
|
|
export async function loadModalFromQuery(){
|
|
const query = new URLSearchParams(window.location.search);
|
|
if (query.has('show')) {
|
|
const dealId = query.get('show');
|
|
if(dealId){
|
|
await showDealModal(dealId);
|
|
}
|
|
}
|
|
}
|