From 1ce643b5db395446758c3b97999ddf3a9bd7ba41 Mon Sep 17 00:00:00 2001 From: Paul TREHIOU Date: Sun, 20 Nov 2016 01:08:21 +0100 Subject: [PATCH] Affichage log cacheP2P dans la console --- vendor/cacheP2P/init.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vendor/cacheP2P/init.js b/vendor/cacheP2P/init.js index ad40b62..8461087 100644 --- a/vendor/cacheP2P/init.js +++ b/vendor/cacheP2P/init.js @@ -1 +1,8 @@ var cachep2p = new CacheP2P() + +cachep2p.on('ready', function(){ + console.log('This page has been cached!') +}) +cachep2p.on('message', console.log) +cachep2p.on('alert', console.log) +cachep2p.on('success', console.log)