Initial commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
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
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user