Fix: newStyleInUsercss -> newStyleAsUsercss

This commit is contained in:
eight 2017-11-09 08:21:42 +08:00
parent 0c292c3150
commit 95e3ba13cd
4 changed files with 5 additions and 5 deletions

View File

@ -974,7 +974,7 @@
"optionsAdvancedContextDelete": {
"message": "Add 'Delete' in editor context menu"
},
"optionsAdvancedNewStyleInUsercss": {
"optionsAdvancedNewStyleAsUsercss": {
"message": "Write new style as usercss"
},
"optionsActions": {

View File

@ -1354,7 +1354,7 @@ function setStyleMeta(style) {
function isUsercss(style) {
return (
style.usercssData ||
!style.id && prefs.get('newStyleInUsercss')
!style.id && prefs.get('newStyleAsUsercss')
);
}

View File

@ -9,7 +9,7 @@ var prefs = new function Prefs() {
'show-badge': true, // display text on popup menu icon
'disableAll': false, // boss key
'exposeIframes': false, // Add 'stylus-iframe' attribute to HTML element in all iframes
'newStyleInUsercss': false, // create new style in usercss format
'newStyleAsUsercss': false, // create new style in usercss format
'popup.breadcrumbs': true, // display 'New style' links as URL breadcrumbs
'popup.breadcrumbs.usePath': false, // use URL path for 'this URL'

View File

@ -124,9 +124,9 @@
</span>
</label>
<label>
<span i18n-text="optionsAdvancedNewStyleInUsercss"></span>
<span i18n-text="optionsAdvancedNewStyleAsUsercss"></span>
<span class="onoffswitch">
<input type="checkbox" id="newStyleInUsercss">
<input type="checkbox" id="newStyleAsUsercss">
<span></span>
</span>
</label>