Get Prototype's Variable

时间:2018-06-04 17:10:57

标签: javascript javascript-events prototype javascript-objects

I want read one variable from prototype.

Normally this variable generating in endgame. But i want read in-game.

JS is here: https://paste.ee/p/4mv8e It's for Chess.com

I see this part in over ChessCom function:

downloadPgn: function(e) {
    this._findFenPgn();
     
    var t = this._getPgnFileName();
     
    return SaveText(this._fenPgn, t, "application/x-chess-pgn;charset=utf-8"), !1
},

I need reach _fenPgn value from console.

I was try console.log(ChessCom.prototype._fenPgn); but fails.

Thanks.

0 个答案:

没有答案