cartodb-4.29/lib/assets/javascripts/dashboard/confirmation.js
2020-06-15 10:58:47 +08: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
});
});