W
W
wini6662017-08-27 12:05:24
JavaScript
wini666, 2017-08-27 12:05:24

How to view a remote repository on heroku?

How to see a remote repository on heroku, or better yet, connect to it?
When you run ./node_modules/.bin/babel-node server.js, it says that the module was not found, everything is fine on the local...

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Shvets, 2019-05-04
@Bulldozer323

const focusedCallbacks = new WeakMap();
document.addEventListener('click', (e) => {
    let target = e.target,
        open = target.dataset.open ? target.dataset.open : 0,
        close = target.dataset.close ? target.dataset.close : 0,
        element = open || close ? document.querySelector(`[data-window=${open || close}]`) : 0,
        

    if (open) {
        element.classList.add(`${element.dataset.window}-open`);
        focusedCallback.set(element,trapFocus.bind(null, element));
        element.addEventListener('keydown', focusedCallback.get(element));
    }
    
    if (close) {
        element.classList.remove(`${element.dataset.window}-open`);
        element.removeEventListener('keydown', focusedCallback.get(element));
        focusedCallback.delete(element);
    }
});

W
wini666, 2017-08-27
@wini666

I went into bash (heroku run bash), but only babel-cli and others were not installed there, probably because in devDependencies

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question