Skip to content

Commit

Permalink
enable webgl
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Feb 11, 2018
1 parent 3595041 commit af33e97
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Widgets/Browser.vala
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ namespace Webpin.Widgets {
cookie_manager.set_accept_policy (WebKit.CookieAcceptPolicy.ALWAYS);
cookie_manager.set_persistent_storage (cookie_db + "cookies.db", WebKit.CookiePersistentStorage.SQLITE);

web_view = new WebKit.WebView.with_context (WebKit.WebContext.get_default ());
web_view = new WebKit.WebView.with_context (WebKit.WebContext.get_default ()) {
settings = new WebKit.Settings () { enable_webgl = true }
};
web_view.load_uri (desktop_file.url);

container = new Gtk.Box (Gtk.Orientation.VERTICAL, 0);
Expand Down

0 comments on commit af33e97

Please sign in to comment.