-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add VC and set the user agent on the web view when loading
- Loading branch information
Alan Westbrook
committed
Mar 17, 2015
1 parent
964d762
commit 59e7220
Showing
2 changed files
with
36 additions
and
5 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// InboxViewController.swift | ||
// Inbox | ||
// | ||
// Created by Alan Westbrook on 3/17/15. | ||
// Copyright (c) 2015 Marcelo Marfil. All rights reserved. | ||
// | ||
|
||
import Cocoa | ||
import WebKit | ||
|
||
class InboxViewController: NSViewController { | ||
@IBOutlet var webView:WebView? = nil | ||
|
||
override func viewDidLoad() { | ||
super.viewDidLoad() | ||
// Do view setup here. | ||
|
||
webView?.customUserAgent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.9 (KHTML, like Gecko) Version/8.0.5 Safari/600.5.9" | ||
|
||
} | ||
|
||
} |