plugin update (wp-media-folder)
This commit is contained in:
@@ -340,14 +340,16 @@ var wpmfFoldersModule = void 0,
|
||||
}
|
||||
};
|
||||
|
||||
// Create an observer instance linked to the callback function
|
||||
const observer = new MutationObserver(callback);
|
||||
if (targetNode){
|
||||
// Create an observer instance linked to the callback function
|
||||
const observer = new MutationObserver(callback);
|
||||
|
||||
// Start observing the target node for configured mutations
|
||||
observer.observe(targetNode, config);
|
||||
|
||||
// Start observing the target node for configured mutations
|
||||
observer.observe(targetNode, config);
|
||||
|
||||
// Later, you can stop observing
|
||||
// observer.disconnect();
|
||||
// Later, you can stop observing
|
||||
// observer.disconnect();
|
||||
}
|
||||
|
||||
// Add the creation gallery from folder button
|
||||
|
||||
|
||||
Reference in New Issue
Block a user