equal
deleted
inserted
replaced
96 _BRIDGE_REF.helper.loadScript("preview/script/lib/menuItem.js"); |
96 _BRIDGE_REF.helper.loadScript("preview/script/lib/menuItem.js"); |
97 _BRIDGE_REF.helper.loadScript("preview/script/lib/console.js"); |
97 _BRIDGE_REF.helper.loadScript("preview/script/lib/console.js"); |
98 |
98 |
99 // Inject SAPI scripts |
99 // Inject SAPI scripts |
100 if (_BRIDGE_REF.nokia) { |
100 if (_BRIDGE_REF.nokia) { |
101 var wrtVersion = _BRIDGE_REF.nokia.helper.readCookie('_WRT_VERSION'); |
101 var wrtVersion = _BRIDGE_REF.nokia.helper.getPreference('__SYM_WRT_VERSION'); |
102 if ((typeof wrtVersion == 'undefined') || (wrtVersion == 'WRT 1.1')) { |
102 if ((typeof wrtVersion == 'undefined') || (wrtVersion == 'WRT 1.1')) { |
103 _BRIDGE_REF.nokia.version = 'WRT 1.1'; |
103 _BRIDGE_REF.nokia.version = 'WRT 1.1'; |
104 _BRIDGE_REF.nokia.helper.createCookie('_WRT_VERSION', 'WRT 1.1'); |
104 _BRIDGE_REF.nokia.helper.setPreference('__SYM_WRT_VERSION', 'WRT 1.1'); |
105 _BRIDGE_REF.helper.loadScript("preview/script/lib/device.js"); |
105 _BRIDGE_REF.helper.loadScript("preview/script/lib/device.js"); |
106 } |
106 } |
107 else { |
107 else { |
108 _BRIDGE_REF.nokia.version = 'WRT 1.0'; |
108 _BRIDGE_REF.nokia.version = 'WRT 1.0'; |
109 } |
109 } |