mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-03 03:19:08 +08:00
Update MonacoHelper.cs
This commit is contained in:
parent
55bcde495d
commit
cfbdf71d61
@ -87,6 +87,7 @@ namespace Peek.FilePreviewer.Previewers
|
|||||||
html = html.Replace("[[PT_CODE]]", base64FileCode, StringComparison.InvariantCulture);
|
html = html.Replace("[[PT_CODE]]", base64FileCode, StringComparison.InvariantCulture);
|
||||||
html = html.Replace("[[PT_URL]]", Microsoft.PowerToys.FilePreviewCommon.MonacoHelper.VirtualHostName, StringComparison.InvariantCulture);
|
html = html.Replace("[[PT_URL]]", Microsoft.PowerToys.FilePreviewCommon.MonacoHelper.VirtualHostName, StringComparison.InvariantCulture);
|
||||||
html = html.Replace("[[PT_MINIMAP]]", minimap ? "true" : "false", StringComparison.InvariantCulture);
|
html = html.Replace("[[PT_MINIMAP]]", minimap ? "true" : "false", StringComparison.InvariantCulture);
|
||||||
|
|
||||||
string filename = tempFolder + "\\" + Guid.NewGuid().ToString() + ".html";
|
string filename = tempFolder + "\\" + Guid.NewGuid().ToString() + ".html";
|
||||||
File.WriteAllText(filename, html);
|
File.WriteAllText(filename, html);
|
||||||
return filename;
|
return filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user