cartodb-4.42/lib/assets/javascripts/dashboard/confirmation.js
2024-04-06 05:25:13 +00:00

21 lines
714 B
JavaScript

const $ = require('jquery');
const ConfirmationView = require('./confirmation/confirmation-view');
const ForbiddenAction = require('builder/data/backbone/network-interceptors/interceptors/forbidden-403');
const NetworkResponseInterceptor = require('builder/data/backbone/network-interceptors/interceptor');
NetworkResponseInterceptor.addURLPattern('api/v1');
NetworkResponseInterceptor.addErrorInterceptor(ForbiddenAction());
NetworkResponseInterceptor.start();
$(function () {
const { userCreationId, username, customHosted, userURL } = window;
const confirmation = new ConfirmationView({ // eslint-disable-line
el: '.js-info',
userCreationId,
username,
customHosted,
userURL
});
});