(has, asked)
| 2000 | var check = function() { |
| 2001 | if (Config.values.sync_type == SyncInfo.types.eCHROMESYNC) { |
| 2002 | var got = function(has, asked) { |
| 2003 | if (has) { |
| 2004 | run(); |
| 2005 | } else { |
| 2006 | console.log("sync: storage permission is needed in order to use Google Sync!"); |
| 2007 | abort(); |
| 2008 | } |
| 2009 | }; |
| 2010 | storagePermission.requestPermissionEx(got); |
| 2011 | } else { |
| 2012 | run(); |