Skip to content

Commit 3356d2b

Browse files
authored
Merge pull request binary-com#1634 from sam-binary/marketing-strategy
Marketing strategy
2 parents be74d83 + 7291488 commit 3356d2b

File tree

4 files changed

+1342
-1
lines changed

4 files changed

+1342
-1
lines changed

src/botPage/view/blockly/index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { getLanguage } from '../../../common/lang';
2222
import { observer as globalObserver } from '../../../common/utils/observer';
2323
import { showDialog } from '../../bot/tools';
2424
import GTM from '../../../common/gtm';
25+
import { parseQueryString } from '../../../common/utils/tools';
2526

2627
const setBeforeUnload = off => {
2728
if (off) {
@@ -262,7 +263,10 @@ export default class _Blockly {
262263
window.addEventListener('resize', renderInstance, false);
263264
renderInstance();
264265
addBlocklyTranslation().then(() => {
265-
$.get('xml/main.xml', main => {
266+
const defaultStrat = parseQueryString().strategy;
267+
const xmlFile = defaultStrat ? `xml/${defaultStrat}.xml` : 'xml/main.xml';
268+
269+
$.get(xmlFile, main => {
266270
repaintDefaultColours();
267271
overrideBlocklyDefaultShape();
268272
this.blocksXmlStr = Blockly.Xml.domToPrettyText(main);

src/common/utils/storageManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,3 +69,5 @@ export const set = (varName, value) => {
6969
};
7070

7171
export const get = varName => store[varName];
72+
73+
export const remove = varName => delete store[varName];

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy