Compare commits

..

2 Commits

Author SHA1 Message Date
DebaucheryLibrarian 637669e3d1 1.222.2 2022-11-27 04:54:01 +01:00
DebaucheryLibrarian f7d28a7f43 Fixed entity and tag restriction in campaign component. 2022-11-27 04:53:59 +01:00
3 changed files with 11 additions and 3 deletions

View File

@ -57,11 +57,14 @@ function entityCampaign() {
if (bannerCampaigns.length > 0) {
const randomCampaign = bannerCampaigns[Math.floor(Math.random() * bannerCampaigns.length)];
this.campaign = randomCampaign;
this.$emit('campaign', randomCampaign);
return randomCampaign;
}
this.$emit('campaign', null);
return null;
}
@ -75,11 +78,14 @@ function tagCampaign() {
banner,
};
this.campaign = randomCampaign;
this.$emit('campaign', randomCampaign);
return randomCampaign;
}
this.$emit('campaign', null);
return null;
}
@ -95,10 +101,12 @@ async function genericCampaign() {
async function mounted() {
if (this.entity) {
await this.entityCampaign();
return;
}
if (this.tag) {
await this.tagCampaign();
return;
}
await this.genericCampaign();

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "traxxx",
"version": "1.222.1",
"version": "1.222.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "traxxx",
"version": "1.222.1",
"version": "1.222.2",
"license": "ISC",
"dependencies": {
"@casl/ability": "^5.2.2",

View File

@ -1,6 +1,6 @@
{
"name": "traxxx",
"version": "1.222.1",
"version": "1.222.2",
"description": "All the latest porn releases in one place",
"main": "src/app.js",
"scripts": {