I may be wrong, but it looks like it's gaffa-taped to the frame, just above the drive. Not a particularly neat solution, but it seems to work!
I've been looking into mid drives recently, as I find myself strangely attracted to their incredible climbing ability, power, torque, and overall...