home *** CD-ROM | disk | FTP | other *** search
/ Freelog 115 / FreelogNo115-MaiJuin2013.iso / Internet / AvantBrowser / asetup.exe / _data / webkit / chrome.dll / 0 / BINDATA / 677 < prev    next >
Encoding:
Text File  |  2013-04-03  |  544 b   |  17 lines

  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4.  
  5. (function() {
  6.   // Since all we want here is forwarding of certain commands, all can be done
  7.   // in the anonymous function's scope.
  8.  
  9.   function wireUpWindow() {
  10.     $('launch-button').addEventListener('click', function() {
  11.       chrome.send('SetAsDefaultBrowser:LaunchSetDefaultBrowserFlow');
  12.     });
  13.   }
  14.  
  15.   window.addEventListener('DOMContentLoaded', wireUpWindow);
  16. })();
  17.