Local Portal.js error

Ghost-CLI version: 1.21.0
Ghost version: 5.3.1

I have downloaded minified portal.min.js file and added to the local path, unminified, edited Ghost config file by adding this:

"portal": {
    "url": "/assets/built/portal.js",
    "version": "2.3"
}

Unfortunatelly portal functionality doesn’t work. I get this error:

Uncaught ReferenceError: fl is not defined

I think changing minified file into unminified might broke the code. Perhaps someone know the solution?

I wanted to have local portal.js for translation purposes.

I don’t think there’s enough information to understand what’s going on here.

Does your error show where it’s originating from? Did you try to re-add the portal code?