linterna-magica-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linterna-magica-commit] [107] Removing reference to unsafeWindow.


From: Ivaylo Valkov
Subject: [linterna-magica-commit] [107] Removing reference to unsafeWindow.
Date: Tue, 05 Jul 2011 08:08:33 +0000

Revision: 107
          
http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=107
Author:   valkov
Date:     2011-07-05 08:08:33 +0000 (Tue, 05 Jul 2011)
Log Message:
-----------
Removing reference to unsafeWindow. After r46 this is not needed.

Revision Links:
--------------
    http://svn.sv.gnu.org/viewvc/?view=rev&root=linterna-magica&revision=46

Modified Paths:
--------------
    trunk/src/lm_log.js

Modified: trunk/src/lm_log.js
===================================================================
--- trunk/src/lm_log.js 2011-07-05 08:04:58 UTC (rev 106)
+++ trunk/src/lm_log.js 2011-07-05 08:08:33 UTC (rev 107)
@@ -44,18 +44,6 @@
 
     if (this.debug_level >= level)
     {
-       var w = null;
-       try
-       {
-           // Firefox and Greasemonkey
-           w = usafeWindow;
-       }
-       catch(e)
-       {
-           // Epiphany and Midori
-           w = window;
-       }
-
        // Simple log/debug
        // console.log(window.location.hostname+": "+message);
 
@@ -64,7 +52,7 @@
        var date = new Date();
        var str =  [date.getHours(), date.getMinutes(),
                    date.getSeconds(), date.getMilliseconds()].join(":");
-       var host_get = w.self;
+       var host_get = window.self;
        var host = host_get.location.hostname;
 
        var indent = "";




reply via email to

[Prev in Thread] Current Thread [Next in Thread]