Set text/plain as default MIME type
This commit is contained in:
parent
ba90a57646
commit
ae85a242ee
@ -15,7 +15,7 @@ define([
|
||||
defaultContent: "\n\n\n> Written with [StackEdit](" + constants.MAIN_URL + ").",
|
||||
commitMsg: "Published with " + constants.MAIN_URL,
|
||||
conflictMode: 'merge',
|
||||
markdownMimeType: 'text/x-markdown',
|
||||
markdownMimeType: 'text/plain',
|
||||
gdriveMultiAccount: 1,
|
||||
gdriveFullAccess: true,
|
||||
dropboxFullAccess: true,
|
||||
|
@ -255,6 +255,16 @@ define([
|
||||
version = "v20";
|
||||
}
|
||||
|
||||
if(version == 'v20') {
|
||||
if(_.has(localStorage, 'settings')) {
|
||||
settings = JSON.parse(localStorage.settings);
|
||||
// Force use of text/plain
|
||||
delete settings.markdownMimeType;
|
||||
localStorage.settings = JSON.stringify(settings);
|
||||
}
|
||||
version = "v21";
|
||||
}
|
||||
|
||||
localStorage.version = version;
|
||||
return localStorage;
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user