client/posts: remember fit mode

This commit is contained in:
rr-
2016-06-29 18:54:49 +02:00
parent c8e57146f3
commit 1f413763bd
4 changed files with 30 additions and 8 deletions

View File

@ -13,7 +13,12 @@ class PostContentControl {
this._install();
this._currentFitFunction = this.fitBoth;
this._currentFitFunction = {
'fit-both': this.fitBoth,
'fit-original': this.fitOriginal,
'fit-width': this.fitWidth,
'fit-height': this.fitHeight,
}[settings.get().fitMode] || this.fitBoth;
this._currentFitFunction();
}