We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 97acea2 commit 7eff898Copy full SHA for 7eff898
scripts/private-destination.js
@@ -77,6 +77,18 @@ const getDestinationData = async (id) => {
77
destination.supportedMethods.screen = true
78
}
79
80
+ const clone = (obj) => Object.assign({}, obj)
81
+ const renameKey = (object, key, newKey) => {
82
+ const clonedObj = clone(object);
83
+ const targetKey = clonedObj[key];
84
+ delete clonedObj[key];
85
+
86
+ clonedObj[newKey] = targetKey;
87
+ return clonedObj;
88
+ };
89
90
+ destination.supportedMethods = renameKey(destination.supportedMethods, 'pageview', 'page')
91
92
let updatePrivateDest = {
93
id: destination.id,
94
display_name: destination.name,
0 commit comments