Commit a2f610e6 authored by Eriksson Monteiro's avatar Eriksson Monteiro

update ad module

parent 115ade95
......@@ -64,7 +64,7 @@ cr.define('millix_bar', function () {
function showNewAdvertisement(advertisement) {
const $headline = $('#advertisement_headline');
const $targetPhrase = $('#advertisement_deck');
if (!advertisement) {
if (!advertisement || !advertisement.advertisement_url) {
$headline.text('');
$targetPhrase.text('');
......
......@@ -265,7 +265,8 @@ window.addEventListener('message', ({ data }) => {
break;
case 'get_next_tangled_advertisement':
API.getNextAdvertisementToRender()
.then(data => window.parent.postMessage({ type: 'next_tangled_advertisement', data }, 'tangled://millix-bar'));
.then(data => window.parent.postMessage({ type: 'next_tangled_advertisement', data }, 'tangled://millix-bar'))
.catch(() => window.parent.postMessage({ type: 'next_tangled_advertisement', data: null }, 'tangled://millix-bar'));
break;
case 'request_advertisement_payment':
API.requestAdvertisementPayment(data.queue_id)
......
......@@ -802,7 +802,7 @@ export const DATABASE_CONNECTION = {};
export const STORAGE_CONNECTION = {};
export const MILLIX_CIRCULATION = 9e15;
export const NODE_MILLIX_BUILD_DATE = 1656527911;
export const NODE_MILLIX_VERSION = '1.20.1-tangled';
export const NODE_MILLIX_VERSION = '1.20.2-tangled';
export const DATA_BASE_DIR_MAIN_NETWORK = './millix-tangled';
export const DATA_BASE_DIR_TEST_NETWORK = './millix-tangled';
let DATA_BASE_DIR = MODE_TEST_NETWORK ? DATA_BASE_DIR_TEST_NETWORK : DATA_BASE_DIR_MAIN_NETWORK;
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment