This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
string mmFolder = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles),"Markdown Monster"); | |
string path = sk.GetValue("Path").ToString(); | |
if (!path.Contains(mmFolder)) | |
{ | |
var pathList = path.Split(new char[] { ';' }, StringSplitOptions.RemoveEmptyEntries).ToList(); | |
pathList.Add(mmFolder); | |
path = string.Join(";", pathList.Distinct().ToArray()); | |
sk.SetValue("Path", path); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {Injectable} from "@angular/core"; | |
import {Http, RequestOptionsArgs, Response} from "@angular/http"; | |
import {UserInfo} from "./userInfo"; | |
import {CatchSignature} from "rxjs/operator/catch"; | |
import {Observable} from "rxjs"; | |
/** | |
* Wrapper around the Http provider to allow customizing HTTP requests | |
*/ | |
@Injectable() |
NewerOlder