Skip to content
This repository has been archived by the owner on Sep 5, 2019. It is now read-only.

fix "Illegal Invocation" error when calling storage getItrem/setItem #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/index.inline.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
opera.isReady(function() {
(function() {
var storage = widget.preferences;
var storage = widget.preferences._storage;
var browserLang = window.navigator.language;
var homeLang = storage.getItem( 'homeLang' ) ||
( NAME_MAP[ browserLang ] ? browserLang : 'en' );
Expand Down
2 changes: 1 addition & 1 deletion scripts/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ opera.isReady(function() {
}
};
window.addEventListener('DOMContentLoaded', function() {
var storage = widget.preferences;
var storage = widget.preferences._storage;

function optionChanged(e) {
var element = e.currentTarget;
Expand Down