fix bookmarks plugin when userscript is before IITC main script

This commit is contained in:
Jon Atkins 2013-09-06 00:20:08 +01:00
parent 7659cf4b84
commit 2807eb11d4

View File

@ -68,7 +68,7 @@
window.plugin.bookmarks.enableSync = false; window.plugin.bookmarks.enableSync = false;
window.plugin.bookmarks.isSmart = window.isSmartphone(); window.plugin.bookmarks.isSmart = undefined;
window.plugin.bookmarks.isAndroid = function() { if(typeof android !== 'undefined' && android) { return true; } return false; } window.plugin.bookmarks.isAndroid = function() { if(typeof android !== 'undefined' && android) { return true; } return false; }
/*********************************************************************************************************************/ /*********************************************************************************************************************/
@ -817,6 +817,9 @@
/***************************************************************************************************************************************************************/ /***************************************************************************************************************************************************************/
var setup = function() { var setup = function() {
window.plugin.bookmarks.isSmart = window.isSmartphone();
// Fired when a bookmarks/folder is removed, added or sorted, also when a folder is opened/closed. // Fired when a bookmarks/folder is removed, added or sorted, also when a folder is opened/closed.
if($.inArray('pluginBkmrksEdit', window.VALID_HOOKS) < 0) { window.VALID_HOOKS.push('pluginBkmrksEdit'); } if($.inArray('pluginBkmrksEdit', window.VALID_HOOKS) < 0) { window.VALID_HOOKS.push('pluginBkmrksEdit'); }
// Fired when the "Bookmarks Options" panell is opened (you can add new options); // Fired when the "Bookmarks Options" panell is opened (you can add new options);