Home | History | Annotate | Download | only in hangout_services
      1 // Copyright 2014 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 chrome.runtime.onStartup.addListener(
      6     function() {
      7   chrome.alarms.create('hangout_services_fxpre', {'delayInMinutes': 2});
      8 });
      9 
     10 chrome.alarms.onAlarm.addListener(function(alarm) {
     11   if (!alarm || alarm.name != 'hangout_services_fxpre')
     12     return;
     13 
     14   var e = document.createElement('iframe');
     15   e.src = 'https://plus.google.com/hangouts/_/fxpre';
     16   document.body.appendChild(e);
     17 });
     18