Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. private void NS3420Browser_Navigating(object sender, System.Windows.Navigation.NavigatingCancelEventArgs e)
  2. {
  3.  
  4. Console.WriteLine("URI:");
  5. Console.WriteLine(e.Uri);
  6.  
  7. if (e.Uri.ToString().EndsWith(".json"))
  8. {
  9. e.Cancel = true;
  10. Console.WriteLine("json file!");
  11. }
  12.  
  13. }
  14.  
  15. var data = {a:1, b:2, c:3};
  16. var json = JSON.stringify(data);
  17. var blob = new Blob([json], {type: "application/json"});
  18.  
  19. saveAs(blob, "test.json");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement