From 35655f33c7713f08515ed640ece0948acd6d6168 Mon Sep 17 00:00:00 2001 From: Naoki Takezoe Date: Sun, 15 Apr 2018 12:11:31 +0900 Subject: [PATCH] Change local storage key --- src/main/twirl/gitbucket/core/repo/editor.scala.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/twirl/gitbucket/core/repo/editor.scala.html b/src/main/twirl/gitbucket/core/repo/editor.scala.html index 21e1d286e..9b984fe64 100644 --- a/src/main/twirl/gitbucket/core/repo/editor.scala.html +++ b/src/main/twirl/gitbucket/core/repo/editor.scala.html @@ -83,7 +83,7 @@ $(function(){ var editor = ace.edit("editor"); editor.setTheme("ace/theme/monokai"); - if(localStorage.getItem('gitbucket.editor.wrap') == 'true'){ + if(localStorage.getItem('gitbucket:editor:wrap') == 'true'){ editor.getSession().setUseWrapMode(true); $('#wrap').val('true'); } @@ -110,10 +110,10 @@ $(function(){ $('#wrap').change(function(){ if($('#wrap option:selected').val() == 'true'){ editor.getSession().setUseWrapMode(true); - localStorage.setItem('gitbucket.editor.wrap', 'true'); + localStorage.setItem('gitbucket:editor:wrap', 'true'); } else { editor.getSession().setUseWrapMode(false); - localStorage.setItem('gitbucket.editor.wrap', 'false'); + localStorage.setItem('gitbucket:editor:wrap', 'false'); } });