mirror of
https://github.com/lingble/chatwoot.git
synced 2025-11-02 03:57:52 +00:00
chore: Replace deprecated functions (#5611)
Co-authored-by: Pranav Raj S <pranav@chatwoot.com>
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
import { CAMPAIGN_TYPES } from '../constants/campaign';
|
||||
|
||||
export default {
|
||||
computed: {
|
||||
campaignType() {
|
||||
const pageURL = window.location.href;
|
||||
const type = pageURL.substr(pageURL.lastIndexOf('/') + 1);
|
||||
return type;
|
||||
return pageURL.substring(pageURL.lastIndexOf('/') + 1);
|
||||
},
|
||||
isOngoingType() {
|
||||
return this.campaignType === CAMPAIGN_TYPES.ONGOING;
|
||||
|
||||
Reference in New Issue
Block a user