From e1cc24a8fb19f47591db4764805f45fbeb7c74a7 Mon Sep 17 00:00:00 2001 From: Jan Bader Date: Sat, 14 May 2016 14:28:20 +0200 Subject: [PATCH] Fix undefined check --- total-cost.handyflash.user.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/total-cost.handyflash.user.js b/total-cost.handyflash.user.js index 21769f6..7e82a63 100644 --- a/total-cost.handyflash.user.js +++ b/total-cost.handyflash.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Gesamtkosten Handyflash // @namespace http://tampermonkey.net/ -// @version 0.4 +// @version 0.5 // @description Berechnet die Gesamtkosten der Verträge auf handyflash.de // @author Jan Bader // @match http*://www.handyflash.de/handys/* @@ -17,7 +17,7 @@ function actionFunction() { jQuery("article.rate").each( function(i, tarif) { - if(jQuery(tarif).data("gesamt") !== "undefined") + if(jQuery(tarif).data('gesamt') !== undefined) return; var grundgebuehr_text = jQuery(tarif).find(".tariff_price").text();