summaryrefslogtreecommitdiff
path: root/static/js/pages/fullscreen_front_init.js
blob: a1a87a510701217367b84727b0637de4bcdbb2ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Shared initializer for fullscreen feed pages.
// Keeps template inline JS mostly data-only (LoggedIn, Timestamp).

(function($){
  function defaultPop(url) {
    var newwindow = window.open(
      url,
      'name',
      'height=50,width=400,left=20,top=20,location=0,status=0,scrollbar=0,resizable=0'
    );
    if (window.focus && newwindow) { newwindow.focus(); }
    return newwindow;
  }

  if (typeof window.pop !== 'function') { window.pop = defaultPop; }

  if (typeof window.startChatUpdater === 'function') { $(window.startChatUpdater); }
})(jQuery);