summaryrefslogtreecommitdiffstats
path: root/data/js/application.js
diff options
context:
space:
mode:
authorJoakim Reinert <mail@jreinert.com>2015-04-19 00:40:45 +0200
committerFlorian Pritz <bluewind@xinu.at>2015-05-05 12:21:27 +0200
commit645ac23ebea2ff1fe6f585a4f8fea27c3928be0e (patch)
tree48a7a74ef530fbb2004fce50115505259cce1177 /data/js/application.js
parentfe68477d8b60bc9303dd2bcd542915ac05e3fac6 (diff)
Refactor tab width input
Diffstat (limited to 'data/js/application.js')
-rw-r--r--data/js/application.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/data/js/application.js b/data/js/application.js
index 3118f96bb..2ae412051 100644
--- a/data/js/application.js
+++ b/data/js/application.js
@@ -5,9 +5,10 @@ define(
'require',
'util',
'lexer-input',
+ 'tabwidth-input',
'vendor'
],
- function (require, Util, LexerInput) {
+ function (require, Util, LexerInput, TabwidthInput) {
require(['script']);
var App = {
// Gets called for every request (before page load)
@@ -21,6 +22,8 @@ define(
*/
onPageLoaded: function (config) {
Util.highlightLineFromHash();
+ Util.setTabwidthFromLocalStorage();
+ TabwidthInput.initialize();
LexerInput.initialize(config.lexers);
},